diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-07-01 14:34:35 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-07-01 14:34:35 -0700 |
commit | f60022244e13f22d401d07f8d0212f56c836cd6d (patch) | |
tree | 4f94beeac88acee3eb05b8af8157f7cb2fbc60bf /scripts | |
parent | fcc66216f9bb362643a3193a76a5762c09b540d4 (diff) | |
download | vyatta-cfg-system-f60022244e13f22d401d07f8d0212f56c836cd6d.tar.gz vyatta-cfg-system-f60022244e13f22d401d07f8d0212f56c836cd6d.zip |
Can't use logger in standalone
logger depends on syslogd which isn't running in standalone mode.
So just format message directly to messages and auth.log
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/standalone_root_pw_reset | 4 |
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..." |