summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial.store_config_to_removable_device
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-02 00:53:04 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-02 00:53:04 +0000
commit08d38b5aa5490de6b5d660d6a9b176a046c236ca (patch)
tree8c1a91f65fa124e11d0a20634d4299ed1780c502 /etc/rc.initial.store_config_to_removable_device
parent126fc5f80212971b4c912100e76b42e96a349cb1 (diff)
downloadpfsense-08d38b5aa5490de6b5d660d6a9b176a046c236ca.zip
pfsense-08d38b5aa5490de6b5d660d6a9b176a046c236ca.tar.gz
Lock configuration during operations
Diffstat (limited to 'etc/rc.initial.store_config_to_removable_device')
-rwxr-xr-xetc/rc.initial.store_config_to_removable_device3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.initial.store_config_to_removable_device b/etc/rc.initial.store_config_to_removable_device
index 50933ab..8c507c5 100755
--- a/etc/rc.initial.store_config_to_removable_device
+++ b/etc/rc.initial.store_config_to_removable_device
@@ -67,7 +67,7 @@
}
echo "\n\nProcessing: ";
-
+ config_lock();
echo "moving...";
mwexec("/bin/mv /cf/conf/config.xml /mnt/cf/");
echo "removing old...";
@@ -78,6 +78,7 @@
mwexec("/bin/ln -s /mnt/cf /cf/conf");
mwexec("/bin/ln -s /mnt/cf /conf");
mwexec("/bin/rm -rf /var/db/pfi");
+ config_unlock();
echo "done.\n\n";
OpenPOWER on IntegriCloud