3 cd /etc/sysconfig/network-scripts
4 . /etc/rc.d/init.d/functions.network
10 DEVICETYPE=`echo $DEVICE | sed "s/[0-9]*$//"`
11 REALDEVICE=`echo $DEVICE | sed 's/:.*//g'`
12 if echo $DEVICE | grep -q ':' ; then
18 /etc/sysconfig/network-scripts/ifup-routes ${DEVICE}
20 if [ "$ISALIAS" = no ] ; then
21 /etc/sysconfig/network-scripts/ifup-aliases ${DEVICE}
24 if [ -n "$NEEDHOSTNAME" -a ${DEVICE} != lo ]; then
25 IPADDR=`ifconfig ${DEVICE} | grep 'inet addr' |
26 awk -F: '{ print $2 } ' | awk '{ print $1 }'`
27 eval `/bin/ipcalc --silent --hostname ${IPADDR}` && set_hostname $HOSTNAME
30 # Notify programs that have requested notification