View Single Post
  #1   (View Single Post)  
Old 12th July 2018
fvgit's Avatar
fvgit fvgit is offline
Spikes in tights
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("U2hlcndvb2QgRm9yZXN0")'
Posts: 314
Default Different motd depending on how I login (e.g. Console vs ssh)?

/etc/login.conf only seems to differentiate between login classes, but I'd like to set up a different motd for the same user depending on where he logs in. I know I can set up an if-statement in ~/.profile that checks $TERM. Is there a way to achieve this system-side?
Reply With Quote