diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-07-03 15:47:41 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-07-03 15:47:41 -0700 |
commit | 1fb175a266e45828a5588e2f44660c2a70057bf0 (patch) | |
tree | 2b40dd20b9b8ef0abaa8a4f99c823228ce05fa9e | |
parent | 18f09e5fe87492ef53168e1d6a29b516c47ce7ab (diff) | |
download | vyatta-cfg-quagga-1fb175a266e45828a5588e2f44660c2a70057bf0.tar.gz vyatta-cfg-quagga-1fb175a266e45828a5588e2f44660c2a70057bf0.zip |
Fix problem if install-system run twice
If install-system is run twice and the first pass copied the old
configuration file; then the second time the leftover file from
previous attempt needs to be cleaned up. Otherwise, the old configuration
file will be copied even if the user doesn't want it!
-rwxr-xr-x | scripts/install-system | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/install-system b/scripts/install-system index a77fc446..5a9c0309 100755 --- a/scripts/install-system +++ b/scripts/install-system @@ -309,6 +309,9 @@ rename_old_config() { check_config_partition() { lpart=$1 + # Cleanup from possible partial last run + rm -fr /mnt/config + # Look to see if this is a config partition mkdir -p /mnt/tmp output=$(mount /dev/$lpart /mnt/tmp 2>&1) |