mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge pull request #515 from kszaq/amlogic-nand-imggz
init: Fix updating from img.gz when kernel resides on block device
This commit is contained in:
commit
79dc62da2c
@ -253,6 +253,7 @@ makeinstall_init() {
|
||||
cp $PKG_DIR/scripts/functions $INSTALL
|
||||
cp $PKG_DIR/scripts/init $INSTALL
|
||||
sed -e "s/@DISTRONAME@/$DISTRONAME/g" \
|
||||
-e "s/@KERNEL_NAME@/$KERNEL_NAME/g" \
|
||||
-i $INSTALL/init
|
||||
chmod 755 $INSTALL/init
|
||||
}
|
||||
|
@ -727,7 +727,11 @@
|
||||
# don't make temporary files but instead copy
|
||||
# directly from mountpoint to /flash
|
||||
UPDATE_DIR=$UPDATE_ROOT/.tmp/mnt
|
||||
UPDATE_KERNEL=$(basename $IMAGE_KERNEL)
|
||||
if [ ! -b $IMAGE_KERNEL -o -z "@KERNEL_NAME@" ]; then
|
||||
UPDATE_KERNEL=$(basename $IMAGE_KERNEL)
|
||||
else
|
||||
UPDATE_KERNEL="@KERNEL_NAME@"
|
||||
fi
|
||||
fi
|
||||
|
||||
sync
|
||||
|
Loading…
x
Reference in New Issue
Block a user