Guest User

Untitled

a guest
Jun 24th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. logo="$(tput setaf 2)
  4. .~~. .~~.
  5. '. \ ' ' / .'$(tput setaf 1)
  6. .~ .~~~..~.
  7. : .~.'~'.~. :
  8. ~ ( ) ( ) ~
  9. ( : '~'.~.'~' : )
  10. ~ .~ ( ) ~. ~
  11. ( : '~' : ) $(tput sgr0)Raspberry Pi$(tput setaf 1)
  12. '~ .~~~. ~'
  13. '~'
  14. $(tput sgr0)"
  15.  
  16. if [ `whoami` != "root" ]; then
  17. echo "$logo"
  18. echo "Run as root to update your motd."
  19. else
  20. echo "$logo" > /etc/motd
  21. /etc/init.d/bootlogs
  22. echo "Updated MOTD. Log in to see the new logo."
  23. fi
Add Comment
Please, Sign In to add comment