Improve easter egg for 20 years of grml.org mika/easteregg
authorMichael Prokop <mika@grml.org>
Sat, 16 Sep 2023 10:19:23 +0000 (12:19 +0200)
committerMichael Prokop <mika@grml.org>
Sat, 16 Sep 2023 11:09:07 +0000 (13:09 +0200)
commit4e06a5ed225c72954f03d12c07aa8bc33fbcd78f
treebac13c262aa9df7d3853f6f0be858c20d4465e17
parent2b0f0ee95d9c4e179b94d1d5333e683665e082a6
Improve easter egg for 20 years of grml.org

Relevant changes:

1) Don't convert dates via date(1), but provide epoch seconds right away
2) Also use zsh's ${EPOCHSECONDS} instead of forking to date(1)
3) Display easter egg message with einfo iff we are within the birthday range
4) Don't display easter egg only on 2023-09-16 and one month later,
   but instead have the easter egg appear randomly, with diminishing probability as
   you get farther from the actual birthday
5) Don't display anything at all when booting with noeasteregg boot option

Thanks: Christopher Bock and AndrĂ¡s Korn
autoconfig.functions