summaryrefslogtreecommitdiffstats
path: root/etc/rc.shutdown
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-20 20:00:56 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-20 20:00:56 +0000
commit6995b4fc1def609e70611911c3f7e778f9271cea (patch)
treeb3df873f7f40ea20950aa04b243e149732a1a78f /etc/rc.shutdown
parent4fbd36ba5fe9d07cf498dae6f6ccfe09641b92a3 (diff)
downloadpfsense-6995b4fc1def609e70611911c3f7e778f9271cea.zip
pfsense-6995b4fc1def609e70611911c3f7e778f9271cea.tar.gz
Do not allow shutdown if write is in progress
Diffstat (limited to 'etc/rc.shutdown')
-rwxr-xr-xetc/rc.shutdown5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc.shutdown b/etc/rc.shutdown
index a2f3d11..3585e74 100755
--- a/etc/rc.shutdown
+++ b/etc/rc.shutdown
@@ -1,5 +1,10 @@
#!/bin/sh
+if [ -f /var/run/config.lock ]; then
+ echo "Cannot reboot at this moment, a config write operation is in progress."
+ exit -1
+fi
+
if [ -e /dev/ukbd0 ]; then
/usr/sbin/vidcontrol -s 2
fi
OpenPOWER on IntegriCloud