You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/sh
|
|
|
|
if [ ! -e var/target.pid ]; then exit; fi
|
|
|
|
on-target -u root halt
|
|
sleep 5
|
|
|
|
if [ ! -e var/target.pid ]; then exit; fi
|
|
sleep 5
|
|
|
|
if [ ! -e var/target.pid ]; then exit; fi
|
|
|
|
echo Killing target since it did not shutdown within 10 seconds
|
|
kill `cat var/target.pid`
|