diff options
Diffstat (limited to 'kdpkg-install/sh/kdpkg-sh')
-rwxr-xr-x | kdpkg-install/sh/kdpkg-sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/kdpkg-install/sh/kdpkg-sh b/kdpkg-install/sh/kdpkg-sh new file mode 100755 index 0000000..e192a09 --- /dev/null +++ b/kdpkg-install/sh/kdpkg-sh @@ -0,0 +1,28 @@ +#!/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 + + |