mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
* Store configuration in /tmp/mnt/cf/conf
* Use null_fs to mount areas up
This commit is contained in:
parent
171966c9eb
commit
4172a44d36
@ -69,17 +69,17 @@
|
||||
echo "\n\nProcessing: ";
|
||||
config_lock();
|
||||
echo "moving...";
|
||||
mwexec("/bin/mv /cf/conf/config.xml /tmp/mnt/cf/");
|
||||
mwexec("mkdir -p /tmp/mnt/cf/conf/");
|
||||
mwexec("/bin/mv /cf/conf/config.xml /tmp/mnt/cf/conf/");
|
||||
echo "removing old...";
|
||||
echo " nullfs... ";
|
||||
system("/sbin/umount /cf/conf");
|
||||
//system("/sbin/umount /conf");
|
||||
//mwexec("/bin/rm -rf /conf");
|
||||
mwexec("/bin/rm -rf /cf");
|
||||
mwexec("/bin/mkdir /cf/");
|
||||
system("/sbin/umount /conf");
|
||||
mwexec("/bin/rm -rf /conf/*.*");
|
||||
/* use nullfs to mount */
|
||||
system("/sbin/mount_nullfs /tmp/mnt/cf/conf /conf");
|
||||
system("/sbin/mount_nullfs /tmp/mnt/cf /cf");
|
||||
echo "linking...";
|
||||
mwexec("/bin/ln -s /tmp/mnt/cf /cf/conf");
|
||||
mwexec("/bin/ln -s /tmp/mnt/cf /conf");
|
||||
mwexec("/bin/rm -rf /var/db/pfi");
|
||||
config_unlock();
|
||||
echo "done.\n";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user