mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
- 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
14 lines
297 B
Bash
Executable File
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
|