diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2010-09-18 01:53:54 -0700 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2010-09-18 01:55:45 -0700 |
commit | 3a4230be7ac8adb6c36dc3b97ab23f3f587e1561 (patch) | |
tree | 06f8f428df6eedee646adcffee4a469e001af090 | |
parent | b77c53c49a4c852eb6028c44748bdffce56258e5 (diff) | |
download | vyatta-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-x | scripts/standalone_root_pw_reset | 4 |
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 |