From 97e821d12d0884e7e49d3c39d0ea4afac6ab0bb2 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 8 Oct 2015 13:16:32 -0700 Subject: [PATCH] Use %e rather than %_d for busybox compatibility Signed-off-by: Tom Eastep --- Shorewall/Perl/lib.core | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Shorewall/Perl/lib.core b/Shorewall/Perl/lib.core index 04655f749..ef94f85a9 100644 --- a/Shorewall/Perl/lib.core +++ b/Shorewall/Perl/lib.core @@ -67,7 +67,7 @@ progress_message() # $* = Message fi if [ $LOG_VERBOSITY -gt 1 ]; then - timestamp="$(date +'%b %_d %T') " + timestamp="$(date +'%b %e %T') " echo "${timestamp}$@" >> $STARTUP_LOG fi } @@ -83,7 +83,7 @@ progress_message2() # $* = Message fi if [ $LOG_VERBOSITY -gt 0 ]; then - timestamp="$(date +'%b %_d %T') " + timestamp="$(date +'%b %e %T') " echo "${timestamp}$@" >> $STARTUP_LOG fi } @@ -99,7 +99,7 @@ progress_message3() # $* = Message fi if [ $LOG_VERBOSITY -ge 0 ]; then - timestamp="$(date +'%b %_d %T') " + timestamp="$(date +'%b %e %T') " echo "${timestamp}$@" >> $STARTUP_LOG fi } @@ -437,7 +437,7 @@ fatal_error() echo " ERROR: $@" >&2 if [ $LOG_VERBOSITY -ge 0 ]; then - timestamp="$(date +'%_b %d %T') " + timestamp="$(date +'%b %e %T') " echo "${timestamp} ERROR: $@" >> $STARTUP_LOG fi