aboutsummaryrefslogtreecommitdiff
path: root/bin/motd
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-08 14:04:20 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-08 14:04:20 +1200
commit1e3fc92975dc14ee630d9df0db4815e72688f8aa (patch)
tree4375519b5626edab285e082465e2364927cf0f69 /bin/motd
parentAdd stex(1) (diff)
downloaddotfiles-1e3fc92975dc14ee630d9df0db4815e72688f8aa.tar.gz
dotfiles-1e3fc92975dc14ee630d9df0db4815e72688f8aa.zip
Add motd(1)
Diffstat (limited to 'bin/motd')
-rwxr-xr-xbin/motd5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/motd b/bin/motd
new file mode 100755
index 00000000..ee60ad03
--- /dev/null
+++ b/bin/motd
@@ -0,0 +1,5 @@
+#!/bin/sh
+# Show the system MOTD
+motd=${MOTD:-/etc/motd}
+[ -f "$motd" ] || exit
+cat -- "$motd"