summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2010-09-17 20:44:04 -0700
committerBob Gilligan <gilligan@vyatta.com>2010-09-17 20:44:04 -0700
commit9a08473ae6abb2aec0e51c758f0712ac91c27de9 (patch)
treee320139dff90ce2831f7b0ca946fcdc22729780f
parent9b9cd1ab869aef38fb08dbb472311af2cfc7277d (diff)
downloadvyatta-cfg-system-9a08473ae6abb2aec0e51c758f0712ac91c27de9.tar.gz
vyatta-cfg-system-9a08473ae6abb2aec0e51c758f0712ac91c27de9.zip
Bugfix 6210: Fix parsing of config file
Previous commit "More fixes to standalone password reset" incorrectly parsed fields in the Vyatta config file.
-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 c13746a0..57a14432 100755
--- a/scripts/standalone_root_pw_reset
+++ b/scripts/standalone_root_pw_reset
@@ -129,11 +129,11 @@ if [ ! -f $CF ]
then dead "$CF file not found"
fi
-if ! grep -q ' system {' $CF
+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\