test.init 252 B

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