#!/bin/sh # Startup script for wireless # # chkconfig: 2345 95 05 # description: Run cron jobs that were left out due to downtime # Source function library. . /etc/rc.d/init.d/functions [ -f /etc/wl/wleiden.pl ] || exit 0 prog="wleiden.pl" start() { echo -n $"Starting $prog: " /etc/wl/wleiden.pl start RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/wleiden echo return $RETVAL } stop() { /etc/wl/wleiden.pl stop RETVAL=$? [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/wleiden return $RETVAL } case "$1" in start) start ;; stop) stop ;; status) status wleiden ;; restart) stop start ;; condrestart) if test "x`pidof wleiden`" != x; then stop start fi ;; *) echo $"Usage: $0 {start|stop|restart|condrestart|status}" exit 1 esac exit 0