#!/bin/sh # (C) Fabian Wuertz Feb 2008 if [ "$1" == "update" ]; then apt-get update echo "" echo "Done! Press enter to continuo." read fi if [ "$1" == "install" ]; then if [ "$3" != "none" ]; then installPackage=$(echo ${3//","/" "}) apt-get install $installPackage fi if [ "$4" != "none" ]; then removePackage=$(echo ${4//","/" "}) apt-get remove $removePackage fi dpkg -i $2 apt-get install -f echo "" echo "Done! Press enter to continuo." read fi