34 |
trap "" INT QUIT TSTP |
trap "" INT QUIT TSTP |
35 |
|
|
36 |
[ "$1" != "" ] && runlevel=$1 |
[ "$1" != "" ] && runlevel=$1 |
37 |
|
# export runlevel variable to make it accessible for other rc-scripts |
38 |
|
export runlevel |
39 |
|
|
40 |
if [[ $runlevel = sysinit ]] |
if [[ $runlevel = sysinit ]] |
41 |
then |
then |
182 |
done |
done |
183 |
fi |
fi |
184 |
|
|
185 |
if [[ ${runlevel} = boot ]] |
if [[ ${runlevel} = boot ]] || [[ ${runlevel} = shutdown ]] || [[ ${runlevel} = reboot ]] |
186 |
then |
then |
187 |
# exit bootsplash |
# exit bootsplash |
188 |
splash "rc_exit" "${runlevel}" |
splash "rc_exit" "${runlevel}" |