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

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

fix half of the init scripts not conforming to
our standard. thx very much ulmen!

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

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