>> "JS" == Johann Spies <email@example.com> writes:
JS> I see there is now a directory named /etc/ip-up.d so I created a
JS> script file there with the name 'horlosie' with the last two lines of
You need a command to execute the scripts in ip-up.d . The standard
ip-up that comes with hamm looks like this:
# $Id: ip-up,v 1.2 1998/02/10 21:25:34 phil Exp $
# This script is run by the pppd after the link is established.
# It uses run-parts to run scripts in /etc/ppp/ip-up.d, so to add routes,
# set IP address, run the mailq etc. you should create script(s) there.
# Be aware that other packages may include /etc/ppp/ip-up.d scripts (named
# after that package), so choose local script names with that in mind.
# This script is called with the following arguments:
# Arg Name Example
# $1 Interface name ppp0
# $2 The tty ttyS1
# $3 The link speed 38400
# $4 Local IP number 184.108.40.206
# $5 Peer IP number 220.127.116.11
# $6 Optional ``ipparam'' value foo
# The environment is cleared before executing this script
# so the path must be reset
# These variables are for the use of the scripts run by run-parts
export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM
# as an additional convenience, $PPP_TTYNAME is set to the tty name,
# stripped of /dev/ (if present) for easier matching.
# Main Script starts here
# last line
Note that the scripts in ip-up.d should also start with #!/bin/sh for
- From: Johann Spies <firstname.lastname@example.org>