2017-05-31 23:45:32 +05:30
|
|
|
#!@SHELL@
|
|
|
|
|
2017-06-12 22:54:18 +05:30
|
|
|
args=
|
|
|
|
for x; do
|
|
|
|
case "$x" in
|
|
|
|
-h) args=" ${args} --halt" ;;
|
|
|
|
*) args=" ${args} ${x} " ;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
case "$args" in
|
|
|
|
*-h|--halt*) ;;
|
|
|
|
*-s|--single*) ;;
|
|
|
|
*) args=" --single ${args}" ;;
|
2017-06-07 21:29:42 +05:30
|
|
|
esac
|
2017-06-12 22:54:18 +05:30
|
|
|
|
2017-06-07 21:29:42 +05:30
|
|
|
exec @SBINDIR@/openrc-shutdown "$args"
|