diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-02 00:53:04 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-02 00:53:04 +0000 |
commit | 08d38b5aa5490de6b5d660d6a9b176a046c236ca (patch) | |
tree | 8c1a91f65fa124e11d0a20634d4299ed1780c502 /etc/rc.initial.store_config_to_removable_device | |
parent | 126fc5f80212971b4c912100e76b42e96a349cb1 (diff) | |
download | pfsense-08d38b5aa5490de6b5d660d6a9b176a046c236ca.zip pfsense-08d38b5aa5490de6b5d660d6a9b176a046c236ca.tar.gz |
Lock configuration during operations
Diffstat (limited to 'etc/rc.initial.store_config_to_removable_device')
-rwxr-xr-x | etc/rc.initial.store_config_to_removable_device | 3 |
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"; |