return to first page linux journal archive
keywordscontents

Listing 2. /etc/ppp/ip-up Script

#!/bin/sh
#
# $1  interface name
# $2  tty device
# $3  speed
# $4  local ip address
# $5  remote ip address

# make sure ftp masquerading is up.
# just in case I want to do ftp transfers
# to or from my system.
/sbin/insmod ip_masq_ftp

# save my IP address so I can let others
# know where I can be reached. I
# need to do this because my ISP assigns
# me a different address each
# time I log on.
echo "At: $4" > /var/run/ppp.info

# Wait 40 seconds and set local clock
# I'm a stickler for an accurate clock
(sleep 40; /usr/bin/rdate -s black-ice.cc.vt.edu)&