Files
Arch-R/packages/sysutils/busybox/scripts/init
Stephan Raue 4751f4fd41 busybox:
- add /etc/profile.d/configcache.conf for permanent caching of configfiles to /storage/.cache
- add /etc/profile.d/fastboot.conf for fastboot config variables
- remove /etc/profile.d/home.conf
- add /etc/profile.d/hostname.conf for hostnam config variable
- remove /etc/profile.d/language.conf
- cleanup /etc/profile.d/path.conf
- add /etc/profile.d/runlevel.conf for detecting runlevel (move from /sbin/init)
- cleanup /etc/profile.d/shell.conf
- start /sbin/init with login shell to have access to profile.d variables
- remove additional read of /etc/profile
2010-03-25 12:11:29 +01:00

14 lines
297 B
Bash
Executable File

#!/bin/sh -l
# starting init scripts for wanted runlevel
progress "Starting Init Scripts"
RET=0
for script in /etc/init.d/*; do
if grep -q -e "^# runlevels:.*$RUNLEVEL" $script; then
. $script
S_RET=$?
test $S_RET -ge $RET && RET=$S_RET
fi
done