mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
busybox:
- mounting special filesystem in /sbin/init
This commit is contained in:
@@ -29,14 +29,4 @@
|
||||
|
||||
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
|
||||
|
||||
@@ -22,13 +22,28 @@
|
||||
|
||||
clear
|
||||
|
||||
# starting init scripts for wanted runlevel
|
||||
RET=0
|
||||
# mounting needed special filesystems
|
||||
mount -n -t proc none /proc
|
||||
mount -n -t sysfs none /sys
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user