mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
busybox:
- mounting special filesystem in /sbin/init
This commit is contained in:
parent
a54da52b34
commit
1d733086b6
@ -29,14 +29,4 @@
|
|||||||
|
|
||||||
progress "mounting needed filesystems"
|
progress "mounting needed filesystems"
|
||||||
|
|
||||||
mount -n -t proc none /proc
|
|
||||||
mount -n -t sysfs none /sys
|
|
||||||
|
|
||||||
echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink
|
|
||||||
|
|
||||||
mount -n -t devtmpfs none /dev
|
|
||||||
|
|
||||||
mkdir -p /dev/pts
|
|
||||||
mount -n -t devpts -o gid=5,mode=620 none /dev/pts
|
|
||||||
|
|
||||||
mount -n -t ramfs none /var
|
mount -n -t ramfs none /var
|
||||||
|
@ -22,13 +22,28 @@
|
|||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
# starting init scripts for wanted runlevel
|
# mounting needed special filesystems
|
||||||
RET=0
|
mount -n -t proc none /proc
|
||||||
|
mount -n -t sysfs none /sys
|
||||||
|
|
||||||
for script in /etc/init.d/*; do
|
echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink
|
||||||
if grep -q -e "^# runlevels:.*$RUNLEVEL" $script; then
|
|
||||||
/bin/sh $script
|
mount -n -t devtmpfs none /dev
|
||||||
S_RET=$?
|
|
||||||
test $S_RET -ge $RET && RET=$S_RET
|
mkdir -p /dev/pts
|
||||||
fi
|
mount -n -t devpts -o gid=5,mode=620 none /dev/pts
|
||||||
done
|
|
||||||
|
# starting init scripts for wanted runlevel
|
||||||
|
|
||||||
|
. /etc/profile
|
||||||
|
|
||||||
|
progress "Starting Init Scripts"
|
||||||
|
RET=0
|
||||||
|
|
||||||
|
for script in /etc/init.d/*; do
|
||||||
|
if grep -q -e "^# runlevels:.*$RUNLEVEL" $script; then
|
||||||
|
/bin/sh $script
|
||||||
|
S_RET=$?
|
||||||
|
test $S_RET -ge $RET && RET=$S_RET
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user