#! /bin/bash # # nicorderer # # chkconfig: 2345 09 91 # description: orders NICs with config file # # Source function library. . /etc/init.d/functions . /etc/profile.d/ibn.sh PATH=${HW_HOME}:$PATH CONFIG=${HW_HOME}/nic.conf export PATH # See how we were called. case "$1" in start) if [ -f $CONFIG ]; then action $"Ordering network interfaces: " setupnics $CONFIG fi touch /var/lock/subsys/ibnnicorder ;; stop) # do nothing rm -f /var/lock/subsys/ibnnicorder ;; restart|reload) $0 stop $0 start ;; *) echo $"Usage: $0 {start|stop|restart|reload}" exit 1 esac exit 0