OutsideIT / FireMotD

:fire: Fire Framework Linux MoTD Generator :fire:
https://outsideit.net/firemotd
GNU General Public License v3.0
174 stars 45 forks source link

Small changes and better cli handling #3

Closed tavinus closed 8 years ago

tavinus commented 8 years ago
Options:
  -h | --help        Shows this help and exits
  -v | --verbose     Verbose mode (shows messages)
  -V | --version     Shows version information and exits
  -t | --theme       Shows Motd info on screen, based on the chosen theme
  -C | --colortest   Prints color test to screen
  -U | --updates     Checks updates and prints to stdout
  -s | --saveupdates Check updates and saves to disk
                     (same as /usr/local/bin/FireMotD -U > /var/tmp/updatecount.txt)
willemdh commented 8 years ago

Wow, thank you Tavinus. You are actually the first person to submit a pr for my FireMotD project! I'll have a look at what you scripted asap!

willemdh commented 8 years ago

@tavinus How are you installing FireMotD with this makefile?

tavinus commented 8 years ago

Ops.. sorry for the delay.

The makefile is kind of optional, but I like having that option.

Just sudo make install will install the script to /usr/local/bin/FireMotD (and set exec permissions). One can change the variable IDIR=/usr/local/bin on the makefile to install somewhere else. I was using /usr/local/sbin but that is not on the default $PATH on many systems.

Then sudo make bash_completionwill install the bash completion script to /etc/bash_completion.d/FireMotD (Bash completion must be enabled on the system to work).

Finally: sudo make uninstall will remove both the script and bash completion.

I understand that some people will not want this system-wide available. But some will, so its there.

I have added the makefile and cron information (for the updates) to the readme.md file.

Glad to be of some help. Thanks for the script!

Cheers! Gus (Tavinus)

tavinus commented 8 years ago

Man.... not too sure why but I was trying to rebase to upstream (yours) and got lots of conflicts. After some research I was able to reset it to yours. It is probably a good idea to use the dev branch to make pull requests. Cheers!