#!/bin/bash if [ ${#} -lt 1 ] then echo "Usage: " echo "./update.sh normal #This just does a normal update"; echo "./update.sh modded #This will do a normal update and then downgrade libaprutil1, libapr1 and nmap so that they work"; exit 1; fi if echo ${1} | egrep "normal" > /dev/null; then apt-get update; apt-get upgrade -y; exit 0; elif echo ${1} | egrep "modded" > /dev/null; then apt-get update; apt-get upgrade -y; apt-get install nmap=5.50-2 libaprutil1=1.3.9-2 libapr1=1.4.2-1 --force-yes -y; apt-get clean && apt-get autoclean; exit 0; else echo "I don't know what you are trying to do.." exit 2; fi