Open glebm opened 1 year ago
We previously used ( ... ) subprocess for each init script to prevent the exit command from exiting rcS/K.
( ... )
exit
rcS/K
Instead, define the EXIT=return in rcS/K and use ${EXIT:-exit} in the scripts instead of the exit command.
EXIT=return
${EXIT:-exit}
${EXIT:-exit} will expand to exit if $EXIT is not set, allowing these scripts to be called directly as well.
$EXIT
This only applies to system scripts. We still use subshells in S99localscripts.sh to avoid breaking any user scripts.
S99localscripts.sh
NEEDS TESTING
Confirmed that this boots on rg350m and gets all the way to "Spawning getty..."
We previously used
( ... )
subprocess for each init script to prevent theexit
command from exitingrcS/K
.Instead, define the
EXIT=return
inrcS/K
and use${EXIT:-exit}
in the scripts instead of theexit
command.${EXIT:-exit}
will expand toexit
if$EXIT
is not set, allowing these scripts to be called directly as well.This only applies to system scripts. We still use subshells in
S99localscripts.sh
to avoid breaking any user scripts.NEEDS TESTING