Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # I hope this works...
- # Check if root
- if [[ $EUID -ne 0 ]]; then
- echo "This script must be run as root" 1>&2
- exit 1
- fi
- # Check architecture
- ARCH=`uname -p`
- # do whatevers
- if [ "$ARCH" == "x86_64" ]
- then
- pushd amd64
- elif [ "$ARCH" == "i686" ]
- then
- pushd i686
- else
- echo "Invalid architecture"
- exit 1
- fi
- for i in *
- do
- dpkg -i $i
- done
- popd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement