_____________________________________________________________________
B096-016 B096-048 and B092-016 User Manual Page 173
fi
if [ -z "$LABEL" ]; then
echo "Welcome $USER, you are connected to Port $PORT"
else
echo "Welcome $USER, you are connected to Port $PORT ($LABEL)"
fi
</etc/config/pmshell-start.sh>
15.3 Raw Access to Serial Ports
Access to Serial Ports
You can tip and stty to completely bypass the portmanager and have raw access to the serial
ports.
When you run tip on a portmanager controlled port, portmanager closes that port, and stops
monitoring it until tip releases control of it.
With stty, the changes made to the port only "stick" until that port is closed and opened again,
so it is doubtful that people will want to use stty for more than initial debugging of the serial
connection.
If you want to use stty to configure the port, you can put stty commands in
/etc/config/scripts/portXX.init, which gets run whenever portmanager opens the port.
Otherwise, any setup you do with stty will get lost when the portmanager opens the port. The
reason that portmanager sets things back to its config, rather than using whatever is on the
port, is so the port is in a known good state, and will work, no matter what things are done to
the serial port outside of portmanager.
Accessing the Console Port
The console dial-in is handled by mgetty, with automatic PPP login extensions. mgetty is a
smart getty replacement, designed to be used with hayes compatible data and data/fax
modems. mgetty knows about modem initialization, manual modem answering (so your
modem doesn’t answer if the machine isn’t ready), UUCP locking (so you can use the same
device for dial-in and dial-out). mgetty provides very extensive logging facilities. All standard
mgetty options are supported.
Modem initialization strings