summaryrefslogtreecommitdiffstats
path: root/etc/rc.halt
blob: 4f3d1ef0171703576d93ba3ebd72ac89f260225a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# $Id$

if [ -f /var/run/config.lock ]; then
	echo "Cannot reboot at this moment, a config write operation is in progress."
	exit -1
fi

sleep 1

/sbin/shutdown -p now

OpenPOWER on IntegriCloud