summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2010-09-18 01:53:54 -0700
committerBob Gilligan <gilligan@vyatta.com>2010-09-18 01:55:45 -0700
commit3a4230be7ac8adb6c36dc3b97ab23f3f587e1561 (patch)
tree06f8f428df6eedee646adcffee4a469e001af090
parentb77c53c49a4c852eb6028c44748bdffce56258e5 (diff)
downloadvyatta-cfg-system-3a4230be7ac8adb6c36dc3b97ab23f3f587e1561.tar.gz
vyatta-cfg-system-3a4230be7ac8adb6c36dc3b97ab23f3f587e1561.zip
Bugfix 6210: Fix up case where login section is missing from config file.
(cherry picked from commit b39ed5b1c8b85402770305efa6b2248df3440db1)
-rwxr-xr-xscripts/standalone_root_pw_reset4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/standalone_root_pw_reset b/scripts/standalone_root_pw_reset
index 57a14432..061db108 100755
--- a/scripts/standalone_root_pw_reset
+++ b/scripts/standalone_root_pw_reset
@@ -133,10 +133,10 @@ if ! grep -q 'system {' $CF
then dead "$CF file does not contain system settings"
fi
-if ! grep -q 'login {' $CF
+if ! grep -q ' login {' $CF
then
# Recreate login section of system
- sed -i -e '/ system {/a\
+ sed -i -e '/system {/a\
login {\
}' $CF
fi