|
|
|
@ -13,10 +13,10 @@ git clone https://cz0.cz/git/czoczo/BetterMOTD.git |
|
|
|
chmod +x ./BetterMOTD/bmotd.sh |
|
|
|
chmod +x ./BetterMOTD/bmotd.sh |
|
|
|
``` |
|
|
|
``` |
|
|
|
## usage: |
|
|
|
## usage: |
|
|
|
> ./bmotd.sh |
|
|
|
`./bmotd.sh` |
|
|
|
> Use: ./bmotd.sh [ test | update | enable | disable ] |
|
|
|
`Use: ./bmotd.sh [ test | update | enable | disable ]` |
|
|
|
> |
|
|
|
` ` |
|
|
|
> test - Print generated motd to standard output. Use for preview. |
|
|
|
` test - Print generated motd to standard output. Use for preview.` |
|
|
|
> update - Update /etc/motd file |
|
|
|
` update - Update /etc/motd file` |
|
|
|
> enable - Places ./bmotd.sh in /etc and adds cron entry for script to run every minute |
|
|
|
` enable - Places ./bmotd.sh in /etc and adds cron entry for script to run every minute` |
|
|
|
> disable - Removes cron entry and disables refreshes of /etc/motd |
|
|
|
` disable - Removes cron entry and disables refreshes of /etc/motd` |
|
|
|
|