#!/bin/bash # # chkconfig: - 13 86 # description: Starting wifi devices # # source function library . /etc/rc.d/init.d/functions RETVAL=0 case "$1" in start) echo -n "Starting wifi: " /root/bin/wifi_start /root/bin/wifi_jarov /root/bin/wifi_apjz /root/bin/wifi_apsv RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/wifi echo ;; stop) echo -n "Shutting down wifi: " /root/bin/wifi_stop RETVAL=$? [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/wifi echo ;; restart) $0 stop $0 start RETVAL=$? ;; *) echo "Usage: zebra {start|stop|restart}" exit 1 esac exit $RETVAL