3 # $Id: ifup-post,v 1.21.2.2 2001/09/30 10:19:42 misiek Exp $
6 . /etc/rc.d/init.d/functions
7 . /etc/sysconfig/network
8 . /etc/sysconfig/network-scripts/functions.network
14 # set all major variables
18 get_ppp_device_and_pid
20 if [ -n "$QDISC" ]; then
21 # Set the queuing discipline
22 # eg: sfq for better link sharing or teql0 for link equalizer
23 tc qdisc add dev "$REALDEVICE" root $QDISC
26 /etc/sysconfig/network-scripts/ifup-aliases ${DEVICE}
27 /etc/sysconfig/network-scripts/ifup-routes ${DEVICE}
29 # don't set hostname on ppp/slip connections
30 if [ -n "$NEEDHOSTNAME" -a "${DEVICETYPE}" != "ppp" -a "${DEVICETYPE}" != "slip" ]; then
31 IPADDR=$(ip -f inet addr show dev ${DEVICE} |
32 awk '/inet/ { print $2 }' |awk -F"/" '{ print $1 }')
33 eval $(/bin/ipcalc --silent --hostname ${IPADDR}) && set_hostname $HOSTNAME
37 if [ "$TLEDS_DEV" = "$DEVICE" -a -x /usr/bin/tleds ]; then
38 /usr/bin/tleds -qc "$DEVICE"
41 # Notify programs that have requested notification
46 # This must be last line !
47 # vi:syntax=sh:tw=78:ts=8:sw=4