summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-01 14:34:35 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-01 14:34:35 -0700
commitf60022244e13f22d401d07f8d0212f56c836cd6d (patch)
tree4f94beeac88acee3eb05b8af8157f7cb2fbc60bf /scripts
parentfcc66216f9bb362643a3193a76a5762c09b540d4 (diff)
downloadvyatta-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-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..."