3 # $Id: ifup-post,v 1.26 2002/08/11 17:05:09 misiek Exp $
8 . /etc/rc.d/init.d/functions
9 . /etc/sysconfig/network
10 . /etc/sysconfig/network-scripts/functions.network
16 # set all major variables
20 get_ppp_device_and_pid
22 if [ -n "$QDISC" ]; then
23 # Set the queuing discipline
24 # eg: sfq for better link sharing or teql0 for link equalizer
25 tc qdisc add dev "$REALDEVICE" root $QDISC
28 /etc/sysconfig/network-scripts/ifup-aliases ${CONFIG}
29 /etc/sysconfig/network-scripts/ifup-routes ${CONFIG}
30 /etc/sysconfig/network-scripts/ifup-neigh ${CONFIG}
32 # don't set hostname on ppp/slip connections
33 if [ -n "$NEEDHOSTNAME" -a "${DEVICETYPE}" != "ppp" -a "${DEVICETYPE}" != "slip" ]; then
34 IPADDR=$(ip -f inet addr show dev ${DEVICE} |
35 awk '/inet/ { print $2 }' |awk -F"/" '{ print $1 }')
36 eval $(/bin/ipcalc --silent --hostname ${IPADDR}) && set_hostname $HOSTNAME
40 if [ "$TLEDS_DEV" = "$DEVICE" -a -x /usr/bin/tleds ]; then
41 /usr/bin/tleds -qc "$DEVICE"
44 # execute run_up() function (if available in device configuration file)
47 # Notify programs that have requested notification
52 # This must be last line !
53 # vi:syntax=sh:tw=78:ts=8:sw=4