You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
478 B
29 lines
478 B
15 years ago
|
#!/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
|
||
|
|
||
|
|