source: genesis/tools/wl-runlvl@ 5721

Last change on this file since 5721 was 4317, checked in by dirkx, 20 years ago

Fixing line types

  • Property svn:eol-style set to native
File size: 875 bytes
Line 
1#!/bin/sh
2# Startup script for wireless
3#
4# chkconfig: 2345 95 05
5# description: Run cron jobs that were left out due to downtime
6
7# Source function library.
8. /etc/rc.d/init.d/functions
9
10[ -f /etc/wl/wleiden.pl ] || exit 0
11
12prog="wleiden.pl"
13
14start() {
15 echo -n $"Starting $prog: "
16 /etc/wl/wleiden.pl start
17 RETVAL=$?
18 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/wleiden
19 echo
20 return $RETVAL
21}
22
23stop() {
24 /etc/wl/wleiden.pl stop
25 RETVAL=$?
26 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/wleiden
27 return $RETVAL
28}
29
30case "$1" in
31 start)
32 start
33 ;;
34
35 stop)
36 stop
37 ;;
38
39 status)
40 status wleiden
41 ;;
42 restart)
43 stop
44 start
45 ;;
46 condrestart)
47 if test "x`pidof wleiden`" != x; then
48 stop
49 start
50 fi
51 ;;
52
53 *)
54 echo $"Usage: $0 {start|stop|restart|condrestart|status}"
55 exit 1
56
57esac
58
59exit 0
Note: See TracBrowser for help on using the repository browser.