]> us-delaporte.pagekite.me Git - dotfiles.git/commitdiff
MOTD hostname helper
authorEdward Delaporte <edward@delaporte.us>
Thu, 16 Jul 2026 20:56:02 +0000 (15:56 -0500)
committerEdward Delaporte <edward@delaporte.us>
Thu, 16 Jul 2026 20:56:02 +0000 (15:56 -0500)
sudo_install/motd.sh [new file with mode: 0755]

diff --git a/sudo_install/motd.sh b/sudo_install/motd.sh
new file mode 100755 (executable)
index 0000000..50bcf21
--- /dev/null
@@ -0,0 +1,8 @@
+ART="$HOME/envs/motd/bin/art"
+if [ ! -e "$ART" ]; then
+       echo "$ART is missing."
+       echo "Run 'dot env motd' and retry."
+       exit 1
+fi
+
+$ART text $HOSTNAME > /etc/motd