wiki:SaliUsage/Functions/shellopen

Version 2 (modified by bas, 14 years ago) (diff)

--

shellopen

This function open a shell/console.

Example

In SALI it is used to open a console if a SCRIPTNAME is not specified (/etc/init.d/rcS):

# if scriptname is not specified open the console!
if [ -z $SCRIPTNAME ]; then
    logmsg
    logmsg "No script defined, opening console"
    write_variables
    shellopen
fi