# --- # badmsg 9 installation script: badmsg@chamorro.us # --- # --- sanity check [ -x /usr/bin/wget ] || { echo "BADMSG error: wget cannot run"; exit 1; } [ -x /bin/chmod ] || { echo "BADMSG error: chmod cannot run"; exit 1; } [ `id -u` -eq 0 ] || { echo "BADMSG error: you must be root to run"; exit 1; } # --- check for badmsg 8 if [ -L /etc/cron.daily/badmsg.daily ] then echo "BADMSG: version 8 removal required"; wget http://www.chamorro.us/rrr/badmsg.uninstall . badmsg.uninstall fi # --- retrieve script /usr/bin/wget http://www.chamorro.us/rrr/badmsg # --- make executable /bin/chmod +x ./badmsg # --- install echo "BADMSG: installing now. see 'badmsg -h' for help when complete." ./badmsg -i