binutils: update to 2.43.1
[openadk.git] / package / adktest / files / adktest.init
blob3969eb585861dca1ff1655e70e6876b697a1760e
1 #!/bin/sh
2 #PKG adktest
3 #INIT 90
4 . /etc/rc.conf
6 case $1 in
7 autostop) ;;
8 autostart)
9 test x"${adktest:-NO}" = x"NO" && exit 0
10 test x"$adktest" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
11 exec sh $0 start
13 start)
14 grep -q shell /proc/cmdline
15 if [ $? -eq 0 ];then
16 exit 0
18 echo "Starting test script ..."
19 if [ -x /run.sh ];then
20 mount -o remount,rw /
21 /run.sh
22 quit
23 else
24 echo "no run.sh found"
25 quit
29 echo "Usage: $0 {start}"
30 exit 1
32 esac
33 exit $?