]> git.pld-linux.org Git - projects/rc-scripts.git/blob - sysconfig/network-scripts/ifup-post
- static arp per interface support
[projects/rc-scripts.git] / sysconfig / network-scripts / ifup-post
1 #!/bin/sh
2 #
3 #       $Id: ifup-post,v 1.26 2002/08/11 17:05:09 misiek Exp $
4 #
5
6 run_up() { :; }
7
8 . /etc/rc.d/init.d/functions
9 . /etc/sysconfig/network
10 . /etc/sysconfig/network-scripts/functions.network
11
12 need_hostname
13 CONFIG=$1
14 source_config
15
16 # set all major variables
17 setup_ip_param
18
19 # set REALDEVICE
20 get_ppp_device_and_pid
21
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
26 fi
27
28 /etc/sysconfig/network-scripts/ifup-aliases ${CONFIG}
29 /etc/sysconfig/network-scripts/ifup-routes ${CONFIG}
30 /etc/sysconfig/network-scripts/ifup-neigh ${CONFIG}
31
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
37 fi
38
39 # run tleds software
40 if [ "$TLEDS_DEV" = "$DEVICE" -a -x /usr/bin/tleds ]; then
41         /usr/bin/tleds -qc "$DEVICE"
42 fi
43
44 # execute run_up() function (if available in device configuration file)
45 run_up
46
47 # Notify programs that have requested notification
48 do_netreport
49
50 exit 0
51
52 # This must be last line !
53 # vi:syntax=sh:tw=78:ts=8:sw=4
This page took 0.024063 seconds and 3 git commands to generate.