summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/vyatta-reboot.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-reboot.pl b/scripts/vyatta-reboot.pl
index 9ed369a..2106ade 100644
--- a/scripts/vyatta-reboot.pl
+++ b/scripts/vyatta-reboot.pl
@@ -77,7 +77,7 @@ if (! defined $action) {
}
openlog($0, "", LOG_USER);
-my $login = getlogin();
+my $login = getlogin() || getpwuid($<) || "unknown";
#
# reboot