test.init 311 B

123456789101112131415161718
  1. #!/bin/sh
  2. #PKG adk-test-tools
  3. #INIT 90
  4. [[ $1 = autostart ]] || exit 0
  5. echo "Setting time via network ..."
  6. rdate -nv pool.ntp.org
  7. echo "Starting test script ..."
  8. grep shell /proc/cmdline > /dev/null 2&>1
  9. if [ $? -eq 0 ];then
  10. exit 0
  11. fi
  12. if [ -x /run.sh ];then
  13. /run.sh
  14. quit
  15. else
  16. echo "no run.sh found"
  17. quit
  18. fi