diff options
-rwxr-xr-x | etc/rc.initial.store_config_to_removable_device | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/etc/rc.initial.store_config_to_removable_device b/etc/rc.initial.store_config_to_removable_device index 0a1416f..259d0b1 100755 --- a/etc/rc.initial.store_config_to_removable_device +++ b/etc/rc.initial.store_config_to_removable_device @@ -58,9 +58,9 @@ } } while (!$move_config_to_device); - mwexec("/bin/mkdir -p /mnt/cf"); + mwexec("/bin/mkdir -p /tmp/mnt/cf"); - $status = mwexec("/sbin/mount -w -t msdos /dev/{$move_config_to_device} /mnt/cf"); + $status = mwexec("/sbin/mount -w -t msdos /dev/{$move_config_to_device} /tmp/mnt/cf"); if(!$status) { echo "Error while mounting {$move_config_to_device}.\n"; exit; @@ -69,17 +69,17 @@ echo "\n\nProcessing: "; config_lock(); echo "moving..."; - mwexec("/bin/mv /cf/conf/config.xml /mnt/cf/"); + mwexec("/bin/mv /cf/conf/config.xml /tmp/mnt/cf/"); echo "removing old..."; echo " nullfs... "; system("/sbin/umount /cf/conf"); - system("/sbin/umount /conf"); + //system("/sbin/umount /conf"); + //mwexec("/bin/rm -rf /conf"); mwexec("/bin/rm -rf /cf"); - mwexec("/bin/rm -rf /conf"); mwexec("/bin/mkdir /cf/"); echo "linking..."; - mwexec("/bin/ln -s /mnt/cf /cf/conf"); - mwexec("/bin/ln -s /mnt/cf /conf"); + 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"; |