#!/bin/bash # # ip-up script for noip2 # Some useful variables, as noted at # http://www.tldp.org/HOWTO/PPP-HOWTO/x1455.html # # $1 the interface name used by pppd (e.g. ppp3) # $2 the tty device name # $3 the tty device speed # $4 the local IP address for the interface # $5 the remote IP address # $6 the parameter specified by the 'ipparam' option to pppd # Restart noip2 daemon NOIP_OPTIONS="-I $1" /etc/init.d/noip2 restart