Last change
on this file since 6095 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 |
|
---|
12 | prog="wleiden.pl"
|
---|
13 |
|
---|
14 | start() {
|
---|
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 |
|
---|
23 | stop() {
|
---|
24 | /etc/wl/wleiden.pl stop
|
---|
25 | RETVAL=$?
|
---|
26 | [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/wleiden
|
---|
27 | return $RETVAL
|
---|
28 | }
|
---|
29 |
|
---|
30 | case "$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 |
|
---|
57 | esac
|
---|
58 |
|
---|
59 | exit 0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.