openrc/support/sysvinit/halt.sh
2019-08-20 13:08:44 -05:00

7 lines
99 B
Bash

#!/bin/sh
if [ "$INIT_HALT" = HALT ]; then
exec /sbin/halt -dhn
else
exec /sbin/poweroff -dhn
fi