All pastes #24629 Raw Edit

Miscellany

public text v1 · immutable
#24629 ·published 2005-10-04 21:06 UTC
rendered paste body
[root@localhost ppp]# cat ip-up
#!/bin/bash
# This file should not be modified -- make local changes to
# /etc/ppp/ip-up.local instead

PATH=/sbin:/usr/sbin:/bin:/usr/bin:/etc/ppp
export PATH

LOGDEVICE=$6
REALDEVICE=$1
ADDRESS=$5
/etc/ppp/readfile ${ADDRESS}

[ -f /etc/sysconfig/network-scripts/ifcfg-${LOGDEVICE} ] && /etc/sysconfig/network-scripts/ifup-post ifcfg-${LOGDEVICE}

[ -x /etc/ppp/ip-up.local ] && /etc/ppp/ip-up.local "$@"

date > /var/run/ppp.up
echo "REMOTE_IP_ADDRESS =" ${ADDRESS} >> /var/run/ppp.up

exit 0