#! /bin/bash
#
# ipw3490d      Load / unload Intel ipw3490 daemon
#
# chkconfig: 2345 09 90
# description:  Load / unload Intel ipw3490 daemon
#
### BEGIN INIT INFO
# Provides: ipw3490d
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 0
fi

case "$1" in
  start)
        echo -n "Starting ipw3945d: "
        /sbin/ipw3945d > /dev/null 2>&1
        echo
        ;;
  stop)
        echo -n "Stopping ipw3945d: "
        killproc ipw3945d
        echo
        ;;
  status)
        status ipw3945d
        ;;
  restart)
        cd "$CWD"
        $0 stop
        $0 start
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|status}"
        exit 1
esac

exit 0

