diff options
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.initial | 4 | ||||
-rwxr-xr-x | etc/rc.initial.store_config_to_removable_device | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/etc/rc.initial b/etc/rc.initial index 170188a..caf3735 100755 --- a/etc/rc.initial +++ b/etc/rc.initial @@ -101,7 +101,9 @@ case ${opmode} in /etc/rc.restart_webgui ;; 98) - /etc/rc.initial.store_config_to_removable_device + if [ ! -f /tmp/config_moved ]; + /etc/rc.initial.store_config_to_removable_device + fi ;; 99) if [ -e /dev/ukbd0 ]; then diff --git a/etc/rc.initial.store_config_to_removable_device b/etc/rc.initial.store_config_to_removable_device index 206c112..f8f5672 100755 --- a/etc/rc.initial.store_config_to_removable_device +++ b/etc/rc.initial.store_config_to_removable_device @@ -84,5 +84,6 @@ config_unlock(); echo "done.\n"; echo "\nYou're configuration has been moved to {$move_config_to_device}\n"; + touch("/tmp/config_moved"); ?>
\ No newline at end of file |