Heiko Zuerker wrote:
>>root@...:~ # find / | grep if-up
>>any suggestions? :) Where is that script?
I think you just have to create it as /etc/ppp/ip-up
You can also create /etc/ppp/ip-down ...
I've done that on my firewalls :
* create /etc/ppp/ip-up.d/ and /etc/ppp/ip-down.d/ directories
* create /etc/ppp/ip-up script :
if [ -d /etc/ppp/ip-up.d ]; then
for SCRIPT in /etc/ppp/ip-up.d/*; do
[ -d $SCRIPT -o ! -x $SCRIPT ] && continue;
# ignore backup files and leftovers from rpm
case $SCRIPT in
*.rpmsave|*.rpmnew|*rpmorig|*~) continue ;;
$SCRIPT "$@" | logger -p security.notice -t $SCRIPT > /dev/null &
It's from SuSE's ones ;-)
You can easily guess what ip-down script looks like ;-)
It allow you very simply to do a lot of usefull things when your adsl con=
comes up or down (dyndns, restart ntpd ;-), restart syslog on remote host=
s ... )
and you can easily order them by starting the scripts names like 01-dyndn=
Hope it helped ...