#!/bin/sh
#
# set-config
#
# sets serial port configuration from the menu system for the root shell
#
if test -f /tmp/port_speed.tmp
	then
		pilotspeed=`cat /tmp/port_speed.tmp`
		pilotport=`cat /tmp/port_conf.tmp`
		PILOTRATE=$pilotspeed
		echo "Serial port configuration: device $pilotport, speed $pilotspeed bps"
	else
		echo "Warning: serial port not configured."
		echo "Using default values /dev/cua0 (COM1), 9600bps"
fi

export PILOTRATE
