You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

stop-target 346B

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
123456789101112131415161718
  1. #!/bin/sh
  2. if [ -z "$USE_LXC" ]; then
  3. if [ ! -e var/target.pid ]; then exit; fi
  4. on-target -u root halt
  5. sleep 5
  6. if [ ! -e var/target.pid ]; then exit; fi
  7. sleep 5
  8. if [ ! -e var/target.pid ]; then exit; fi
  9. echo Killing target since it did not shutdown within 10 seconds
  10. kill `cat var/target.pid`
  11. else
  12. true
  13. fi