View Single Post
  #1   (View Single Post)  
Old 12th July 2018
fvgit's Avatar
fvgit fvgit is offline
Tempvs fvgit
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("SGVyZSBiZSBkcmFnb25zC")'
Posts: 159
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