summaryrefslogtreecommitdiff
path: root/scripts/standalone_root_pw_reset
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-06-30 15:54:04 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-06-30 15:54:04 -0700
commit5c108ca0a31657763cd657eb22253013e04fef5a (patch)
tree3b18a3472419590421ad627e460168b076b04427 /scripts/standalone_root_pw_reset
parentc0aa9cfa7e3d57e0b0554033dd5f099584e7fdda (diff)
downloadvyatta-cfg-system-5c108ca0a31657763cd657eb22253013e04fef5a.tar.gz
vyatta-cfg-system-5c108ca0a31657763cd657eb22253013e04fef5a.zip
Use logger to write system log
Use the logger program to get the proper logging format and message priorities (rather than blindly echoing to /var/log/messages)
Diffstat (limited to 'scripts/standalone_root_pw_reset')
-rwxr-xr-xscripts/standalone_root_pw_reset3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/standalone_root_pw_reset b/scripts/standalone_root_pw_reset
index 7b04a9ba..b76de6e9 100755
--- a/scripts/standalone_root_pw_reset
+++ b/scripts/standalone_root_pw_reset
@@ -79,8 +79,7 @@ sed -i \
-e "/^.* user root {/,/}/s/encrypted-password:.*\$/encrypted-password: \"$pw\"/" \
$CF
-echo "Root password has been reset."
-echo "`date`: Root password reset to factory value" >> /var/log/messages
+logger -s -p auth.notice "Root password reset to factory value"
sync
echo "System will reboot in 10 seconds..."