# Add this to /etc/rcS.d/S55bootmisc
# Startup Internet connection
echo "Bringing up Internet Connection; Plug in your modem/phone"
/etc/init.d/ppp.sh start &
# initscript: /etc/init.d/ppp.sh
# why: bring up ppp connection upon bootup
# to avoid manual root administration of ppp.
#
# Bug: If user hits enter at login prompt,
# Jailbait tinylogin bails out and LEM login
# only displays login in all caps. Hitting
# enter again returns to Jailbait login.
# Things to do: add sylinks for rc.d start &
# kill levels.
#
#!/bin/bash
test -f /etc/ppp/ppp-up || exit 0
test -e /dev/ttyS0 || exit 0
# processname: ppp
# pidfile: /var/run/ppp.pid
# config: /etc/ppp
# source function library
PPPUP=/etc/ppp/ppp-up
PPPDOWN=/etc/ppp/ppp-down
case "$1" in
start)
echo -n "Starting PPP Internet connection: "
if [ -f "$PPPUP" ]; then
. "$PPPUP" &
else
echo "(PPP not configured)"
exit 0
fi
echo
touch /var/lock/subsys/ppp
;;
stop)
echo -n "Shutting down PPP Internet connection: "
. "$PPPDOWN" &
echo -n "ppp"
rm -f /var/lock/subsys/ppp
echo
;;
restart|reload)
$0 stop
$0 start
;;
*)
echo "Usage: ppp {start|stop|status|restart|reload}"
exit 1
esac
exit 0