confirm "You may now dialog with your modem and set up the slip connection.\nBe sure to disable DTR sensitivity (usually with AT&D0) or the modem may\nhang up when you exit 'cu'. Use ~. to exit cu and continue."
dialog --clear
cu -l $serial_interface -s $serial_speed
dialog --clear
fi
}
network_setup_plip()
{
default_value=""
if ! network_dialog "What is the IP number for the remote host?";thenreturn 1;fi
remote_hostip=$answer
interface=lp0
}
network_setup()
{
done=0
while["$interface"=""];do
clear="--clear"
dialog $clear --title "Set up network interface"\
--menu "Please select the type of network connection you have:\n\n"\
15723\
"ether""A supported ethernet card"\
"SLIP""A point-to-point SLIP (Serial Line IP) connection"\
"PLIP""A Parallel-Line IP setup (sort of like lap-link)"\
2> ${TMP}/menu.tmp.$$
retval=$?
choice=`cat ${TMP}/menu.tmp.$$`
rm -f ${TMP}/menu.tmp.$$
if ! handle_rval $retval;thenreturn 1;fi
case$choice in
ether)
if ! network_setup_ether;thencontinue;fi
;;
SLIP)
if ! network_setup_slip;thencontinue;fi
;;
PLIP)
if ! network_setup_plip;thencontinue;fi
;;
esac
if["$interface"=""];thencontinue;fi
clear=""
default_value=""
if ! network_dialog "What is the fully qualified name of this host?";thenclear="--clear";return 1;fi
hostname=$answer
echo$hostname > /etc/myname
hostname $hostname
default_value=`echo$hostname| sed -e 's/[^.]*\.//'`
if network_dialog "What is the domain name of this host (Internet, not YP/NIS)?";then
domain=$answer
fi
default_value=""
if ! network_dialog "What is the IP address of this host?";thenclear="--clear";return 1;fi
ipaddr=$answer
echo"$ipaddr$hostname `echo $hostname | sed -e 's/\.$domain//'`" >> /etc/hosts
default_value="$netmask"
if network_dialog "Please specify the netmask";then
if["$answer" !=""];then
netmask=$answer
fi
fi
default_value=""
if network_dialog "Any extra flags to ifconfig?";then