diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-03-20 20:00:56 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-03-20 20:00:56 +0000 |
commit | 6995b4fc1def609e70611911c3f7e778f9271cea (patch) | |
tree | b3df873f7f40ea20950aa04b243e149732a1a78f /etc | |
parent | 4fbd36ba5fe9d07cf498dae6f6ccfe09641b92a3 (diff) | |
download | pfsense-6995b4fc1def609e70611911c3f7e778f9271cea.zip pfsense-6995b4fc1def609e70611911c3f7e778f9271cea.tar.gz |
Do not allow shutdown if write is in progress
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.shutdown | 5 |
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 |