mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
busybox: cleanup init script for initramfs
This commit is contained in:
parent
7c4753f5e9
commit
0f5e939c62
@ -6,11 +6,8 @@
|
|||||||
BOOT=`/bin/busybox cat /proc/cmdline | /bin/busybox sed 's/.*boot=// ; s/ .*//'`
|
BOOT=`/bin/busybox cat /proc/cmdline | /bin/busybox sed 's/.*boot=// ; s/ .*//'`
|
||||||
DISK=`/bin/busybox cat /proc/cmdline | /bin/busybox sed 's/.*disk=// ; s/ .*//'`
|
DISK=`/bin/busybox cat /proc/cmdline | /bin/busybox sed 's/.*disk=// ; s/ .*//'`
|
||||||
|
|
||||||
# /bin/busybox mdev -s
|
|
||||||
|
|
||||||
/bin/busybox mount -o ro,noatime $BOOT /flash
|
/bin/busybox mount -o ro,noatime $BOOT /flash
|
||||||
/bin/busybox mount -o rw,noatime $DISK /storage
|
/bin/busybox mount -o rw,noatime $DISK /storage
|
||||||
# /bin/busybox mount -t ramfs none /storage
|
|
||||||
|
|
||||||
if [ -f "/storage/.update/openelec.kernel" ]; then
|
if [ -f "/storage/.update/openelec.kernel" ]; then
|
||||||
echo "updating Kernel..."
|
echo "updating Kernel..."
|
||||||
@ -22,7 +19,6 @@
|
|||||||
echo "System reboots now"
|
echo "System reboots now"
|
||||||
/bin/busybox reboot
|
/bin/busybox reboot
|
||||||
fi
|
fi
|
||||||
# /bin/busybox sleep 5
|
|
||||||
|
|
||||||
if [ -f "/storage/.update/openelec.system" ]; then
|
if [ -f "/storage/.update/openelec.system" ]; then
|
||||||
echo "updating System..."
|
echo "updating System..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user