mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +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/functions $INSTALL
|
||||||
cp $PKG_DIR/scripts/init $INSTALL
|
cp $PKG_DIR/scripts/init $INSTALL
|
||||||
sed -e "s/@DISTRONAME@/$DISTRONAME/g" \
|
sed -e "s/@DISTRONAME@/$DISTRONAME/g" \
|
||||||
|
-e "s/@KERNEL_NAME@/$KERNEL_NAME/g" \
|
||||||
-i $INSTALL/init
|
-i $INSTALL/init
|
||||||
chmod 755 $INSTALL/init
|
chmod 755 $INSTALL/init
|
||||||
}
|
}
|
||||||
|
@ -727,7 +727,11 @@
|
|||||||
# don't make temporary files but instead copy
|
# don't make temporary files but instead copy
|
||||||
# directly from mountpoint to /flash
|
# directly from mountpoint to /flash
|
||||||
UPDATE_DIR=$UPDATE_ROOT/.tmp/mnt
|
UPDATE_DIR=$UPDATE_ROOT/.tmp/mnt
|
||||||
|
if [ ! -b $IMAGE_KERNEL -o -z "@KERNEL_NAME@" ]; then
|
||||||
UPDATE_KERNEL=$(basename $IMAGE_KERNEL)
|
UPDATE_KERNEL=$(basename $IMAGE_KERNEL)
|
||||||
|
else
|
||||||
|
UPDATE_KERNEL="@KERNEL_NAME@"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sync
|
sync
|
||||||
|
Loading…
x
Reference in New Issue
Block a user