source:
freewrt/package/srelay/files/srelay.init@
621d5d2
| Last change on this file since 621d5d2 was b1bc4e2a, checked in by , 19 years ago | |
|---|---|
|
|
| File size: 300 bytes | |
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | |
| 3 | . /etc/rc.conf |
| 4 | |
| 5 | case $1 in |
| 6 | autostart) |
| 7 | test x"${srelay:-NO}" = x"NO" && exit 0 |
| 8 | exec $0 start |
| 9 | ;; |
| 10 | start) |
| 11 | [ -f /etc/srelay.conf ] || exit 1 |
| 12 | srelay ${srelay_flags} |
| 13 | ;; |
| 14 | stop) |
| 15 | killall srelay |
| 16 | ;; |
| 17 | restart) |
| 18 | $0 stop |
| 19 | $0 start |
| 20 | ;; |
| 21 | *) |
| 22 | echo "Usage: $0 {start | stop | restart}" |
| 23 | ;; |
| 24 | esac |
| 25 | exit $? |
Note:
See TracBrowser
for help on using the repository browser.
