]> git.pld-linux.org Git - projects/rc-scripts.git/blob - sysconfig/network-scripts/ifup-post
- merge my private tree
[projects/rc-scripts.git] / sysconfig / network-scripts / ifup-post
1 #!/bin/sh
2 #
3 #       $Id: ifup-post,v 1.21.2.2 2001/09/30 10:19:42 misiek Exp $
4 #
5
6 . /etc/rc.d/init.d/functions
7 . /etc/sysconfig/network
8 . /etc/sysconfig/network-scripts/functions.network
9
10 need_hostname
11 CONFIG=$1
12 source_config
13
14 # set all major variables
15 setup_ip_param
16
17 # set REALDEVICE
18 get_ppp_device_and_pid
19
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
24 fi
25
26 /etc/sysconfig/network-scripts/ifup-aliases ${DEVICE}
27 /etc/sysconfig/network-scripts/ifup-routes ${DEVICE}
28
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
34 fi
35
36 # run tleds software
37 if [ "$TLEDS_DEV" = "$DEVICE" -a -x /usr/bin/tleds ]; then
38         /usr/bin/tleds -qc "$DEVICE"
39 fi
40
41 # Notify programs that have requested notification
42 do_netreport
43
44 exit 0
45
46 # This must be last line !
47 # vi:syntax=sh:tw=78:ts=8:sw=4
48
This page took 0.026136 seconds and 3 git commands to generate.