openrc/support/sysvinit/halt.sh

7 lines
99 B
Bash
Raw Normal View History

2019-08-20 23:26:47 +05:30
#!/bin/sh
if [ "$INIT_HALT" = HALT ]; then
exec /sbin/halt -dhn
else
exec /sbin/poweroff -dhn
fi