source: freewrt/package/srelay/files/srelay.init@ 621d5d2

freewrt_2_0
Last change on this file since 621d5d2 was b1bc4e2a, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

fix all remaining init scripts, normalize

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1029 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100755
File size: 300 bytes
Line 
1#!/bin/sh
2
3. /etc/rc.conf
4
5case $1 in
6autostart)
7 test x"${srelay:-NO}" = x"NO" && exit 0
8 exec $0 start
9 ;;
10start)
11 [ -f /etc/srelay.conf ] || exit 1
12 srelay ${srelay_flags}
13 ;;
14stop)
15 killall srelay
16 ;;
17restart)
18 $0 stop
19 $0 start
20 ;;
21*)
22 echo "Usage: $0 {start | stop | restart}"
23 ;;
24esac
25exit $?
Note: See TracBrowser for help on using the repository browser.