aboutsummaryrefslogtreecommitdiffstats
path: root/ppp/ip-up
blob: b4b14da68e685e1d26c253b4446d89d7f13319c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

# This file should not be modified -- make local changes to
# /etc/ppp/ip-up.local instead

LOGDEVICE=$6
REALDEVICE=$1

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

echo "$REALDEVICE" > /var/run/ppp-$LOGDEVICE.dev
chmod a+r /var/run/ppp-$LOGDEVICE.dev

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

# Used for clustering heartbeat monitoring stuff.
[ -x /etc/ppp/ip-up.heart ] && /etc/ppp/ip-up.heart $*

/etc/sysconfig/network-scripts/ifup-post ifcfg-${LOGDEVICE}

exit 0