summaryrefslogtreecommitdiffstats
path: root/etc/rc.reboot
blob: 7a213e7f66cad4421b86566c7ca6817ff29d7329 (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 -r now

OpenPOWER on IntegriCloud