summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-02-24 11:30:52 +0100
committerGravatar Christian Hesse <mail@eworm.de>2014-02-24 11:30:52 +0100
commitdb60c67c72e399c0b3968a53d2673ee5db488d11 (patch)
treebf70613cce4bc09037d5cce14ec5d46e0569eaff
parenta7a6dc6963a9b72816f1e4e19467aab152644507 (diff)
downloadnullshell-db60c67c72e399c0b3968a53d2673ee5db488d11.tar.gz
nullshell-db60c67c72e399c0b3968a53d2673ee5db488d11.tar.zst
show the banner from time to time
-rw-r--r--nullshell.c5
1 files changed, 4 insertions, 1 deletions
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++;
}