From 87cf1884535c50e578fcd2359092dcdc20aade57 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Tue, 23 Dec 2008 20:46:38 +0200 Subject: [PATCH] wall: enhanced to support the case when $USER not declared --- initramfs/bin_wall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initramfs/bin_wall.sh b/initramfs/bin_wall.sh index 462ae27..d59973d 100644 --- a/initramfs/bin_wall.sh +++ b/initramfs/bin_wall.sh @@ -18,7 +18,7 @@ tmpfile=/tmp/wall.$$ trap "rm -f $tmpfile" INT cat < $tmpfile -Broadcast Message from $USER@$(hostname) +Broadcast Message from ${USER:-root}@$(hostname) ($(tty)) at $(date) ... EOT cat >> $tmpfile