test.init 326 B

1234567891011121314151617
  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. echo "Use user root and password linux123 to login. And quit to finish."
  9. exit 0
  10. fi
  11. if [ -x /run.sh ];then
  12. /run.sh
  13. quit
  14. else
  15. echo "no run.sh found"
  16. quit
  17. fi