summaryrefslogtreecommitdiff
path: root/scripts/standalone_root_pw_reset
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/standalone_root_pw_reset')
-rwxr-xr-xscripts/standalone_root_pw_reset4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/standalone_root_pw_reset b/scripts/standalone_root_pw_reset
index b76de6e9..b173f22d 100755
--- a/scripts/standalone_root_pw_reset
+++ b/scripts/standalone_root_pw_reset
@@ -79,7 +79,9 @@ sed -i \
-e "/^.* user root {/,/}/s/encrypted-password:.*\$/encrypted-password: \"$pw\"/" \
$CF
-logger -s -p auth.notice "Root password reset to factory value"
+echo $(date "+%b%e %T") $(hostname) "Root password reset to factory value" \
+ | tee -a /var/log/auth.log >>/var/log/messages
+
sync
echo "System will reboot in 10 seconds..."