#!/bin/sh # # This script is run once the PPP link is up # # @(#) $Id: ip-up,v 1.3 2000/02/26 05:12:53 myers Exp myers $ ##################################################################### # Sound to play when link is up SOUND=/usr/local/lib/sound/hallelujah.au # If there was already a default route then ppp apparantly won't # replace it, so force the default to be the ppp link /sbin/route del default >/dev/null /sbin/route add default gw $5 netmask 0.0.0.0 metric 1 # Update to current time from server(s) (if you have ntpdate) /usr/local/bin/ntpdate surprise.ifs.umich.edu maui.physics.lsa.umich.edu & # Flush any e-mail waiting in the queue /usr/lib/sendmail -q & # Play a sound to signal link is up if [ -f $SOUND ]; then /usr/bin/play $SOUND & fi # Tell folks that that the link is up ( echo -n "ppp link is UP at "; date ) | wall & exit 0