mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +00:00
Merge pull request #516 from kszaq/amlogic-nand-imggz-7.0
init: Fix updating from img.gz when kernel resides on block device
This commit is contained in:
commit
f37187d31b
@ -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
|
||||
}
|
||||
|
@ -680,7 +680,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