I found a way to solve this problem. Apparently, it looks that the runlevel 2 is user definable on Slackware. According to some remarks in inittab, it is configured as the default runlevel 3. If I assign only the priority 2 to S2 for ttyS3 like the following, this one would be assigned as a serial console only at this RunLevel.
S2:2:respawn:/sbin/agetty -L ttyS3 9600 vt100
In rc.local, I can change the runlevel and ask init to review inittab when I discover that I am in recovery mode as following:
if [ -f $ADIEXEC/RECOVERY.MOD ];
then
echo --- RECOVERY mode: ttyS3 is set as Serial Console
init 2
else
...
Yves Plasse.
Last edited by yplasse; 02-08-2012 at 06:56 PM.
|