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.
19 lines
346 B
Bash
19 lines
346 B
Bash
#!/bin/sh
|
|
|
|
if [ -z "$USE_LXC" ]; then
|
|
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`
|
|
else
|
|
true
|
|
fi
|