From 5c108ca0a31657763cd657eb22253013e04fef5a Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 30 Jun 2008 15:54:04 -0700 Subject: 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) --- scripts/standalone_root_pw_reset | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/standalone_root_pw_reset') 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..." -- cgit v1.2.3