mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
busybox:
- more speed on startup
This commit is contained in:
parent
e6d8bf8cf0
commit
76e007a901
@ -57,9 +57,9 @@
|
|||||||
update() {
|
update() {
|
||||||
if [ -f "$UPDATE_DIR/$2" ]; then
|
if [ -f "$UPDATE_DIR/$2" ]; then
|
||||||
echo "updating $1..."
|
echo "updating $1..."
|
||||||
/bin/busybox mount -o remount,rw /flash
|
/bin/busybox mount -o remount,rw,nobarrier /flash
|
||||||
/bin/busybox mv $UPDATE_DIR/$2 $3
|
/bin/busybox mv $UPDATE_DIR/$2 $3
|
||||||
/bin/busybox mount -o remount,ro /flash
|
/bin/busybox mount -o remount,ro,nobarrier /flash
|
||||||
/bin/busybox sync
|
/bin/busybox sync
|
||||||
if [ $4 = reboot ]; then
|
if [ $4 = reboot ]; then
|
||||||
echo "System reboots now"
|
echo "System reboots now"
|
||||||
@ -70,8 +70,8 @@
|
|||||||
|
|
||||||
show_splash
|
show_splash
|
||||||
|
|
||||||
mount_part "$BOOT" "/flash" "ro,noatime"
|
mount_part "$BOOT" "/flash" "ro,noatime,nobarrier"
|
||||||
[ -n $DISK ] && mount_part "$DISK" "/storage" "rw,noatime"
|
[ -n $DISK ] && mount_part "$DISK" "/storage" "rw,noatime,nobarrier"
|
||||||
# mount_part "$DISK" "/storage" "rw,noatime"
|
# mount_part "$DISK" "/storage" "rw,noatime"
|
||||||
|
|
||||||
update "Kernel" "openelec.kernel" "/flash/openelec.kernel" "reboot"
|
update "Kernel" "openelec.kernel" "/flash/openelec.kernel" "reboot"
|
||||||
|
@ -12,5 +12,5 @@ ADJTIME=/etc/adjtime
|
|||||||
|
|
||||||
if [ -x /sbin/hwclock ]; then
|
if [ -x /sbin/hwclock ]; then
|
||||||
[ -r ${ADJTIME} ] && ! ( grep -q "LOCAL" ${ADJTIME} || grep -q "UTC" ${ADJTIME} ) && echo "UTC" >>${ADJTIME}
|
[ -r ${ADJTIME} ] && ! ( grep -q "LOCAL" ${ADJTIME} || grep -q "UTC" ${ADJTIME} ) && echo "UTC" >>${ADJTIME}
|
||||||
/sbin/hwclock --hctosys -f /dev/rtc
|
/sbin/hwclock --hctosys -f /dev/rtc &
|
||||||
fi
|
fi
|
||||||
|
@ -8,4 +8,4 @@
|
|||||||
|
|
||||||
progress "saving Bootdate"
|
progress "saving Bootdate"
|
||||||
|
|
||||||
/bin/date > /tmp/bootdate
|
/bin/date > /tmp/bootdate &
|
||||||
|
@ -9,6 +9,6 @@
|
|||||||
progress "Starting Syslog daemon"
|
progress "Starting Syslog daemon"
|
||||||
|
|
||||||
mkdir -p /var/log
|
mkdir -p /var/log
|
||||||
syslogd
|
syslogd &
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -8,6 +8,6 @@
|
|||||||
|
|
||||||
progress "Starting ACPI daemon"
|
progress "Starting ACPI daemon"
|
||||||
|
|
||||||
acpid /dev/input/event* 2>&1 > /dev/null
|
acpid /dev/input/event* 2>&1 > /dev/null &
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -9,6 +9,6 @@
|
|||||||
progress "Starting CRON daemon"
|
progress "Starting CRON daemon"
|
||||||
|
|
||||||
mkdir -p /var/spool/cron/crontabs
|
mkdir -p /var/spool/cron/crontabs
|
||||||
crond -S
|
crond -S &
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user