adktest.init 483 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/sh
  2. #PKG adktest
  3. #INIT 90
  4. . /etc/rc.conf
  5. case $1 in
  6. autostop) ;;
  7. autostart)
  8. test x"${adktest:-NO}" = x"NO" && exit 0
  9. test x"$adktest" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
  10. exec sh $0 start
  11. ;;
  12. start)
  13. grep shell /proc/cmdline > /dev/null 2&>1
  14. if [ $? -eq 0 ];then
  15. exit 0
  16. fi
  17. echo "Starting test script ..."
  18. if [ -x /run.sh ];then
  19. /run.sh
  20. quit
  21. else
  22. echo "no run.sh found"
  23. quit
  24. fi
  25. ;;
  26. *)
  27. echo "Usage: $0 {start}"
  28. exit 1
  29. ;;
  30. esac
  31. exit $?