package/opencv: fix build failure on x86
[buildroot-gz.git] / package / tinyhttpd / S85tinyhttpd
bloba1f4ce836841dafcf893110aadc7cabbc43a2c58
1 #! /bin/sh
3 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
4 NAME=tinyhttpd
6 test -x /usr/sbin/$NAME || exit 0
7 mkdir -p /var/www
9 case "$1" in
10 start)
11 echo -n "Starting $NAME: "
12 $NAME > /dev/null &
13 echo "done"
15 stop)
16 echo -n "Stopping $NAME: "
17 killall -9 $NAME
18 echo "done"
20 restart)
21 echo -n "Restarting $NAME: "
22 killall -9 $NAME
23 sleep 1
24 $NAME > /dev/null &
25 echo "done"
28 echo "Usage: /etc/init.d/S85tinyhttpd {start|stop|restart}" >&2
29 exit 1
31 esac
33 exit 0