From db60c67c72e399c0b3968a53d2673ee5db488d11 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 24 Feb 2014 11:30:52 +0100 Subject: show the banner from time to time --- nullshell.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nullshell.c b/nullshell.c index 9225fd2..1f8f35a 100644 --- a/nullshell.c +++ b/nullshell.c @@ -57,7 +57,10 @@ int main(int argc, char **argv) { fflush(NULL); if (*string == 0) { time(&now); - string = ctime(&now); + if ((now / 30) % 30 > 0) + string = ctime(&now); + else + string = BANNER; } else string++; } -- cgit v1.2.3-54-g00ecf