Advertisement
Guest User

Untitled

a guest
May 6th, 2013
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. # now we do the actual install
  2. if [ "$TOINSTALL" = "" ]; then
  3. echo ". . No new packages require instalation.";
  4. else
  5. if [ "`uname -m`" = "x86_64" ] || [ "`uname -m`" = "ia64" ]; then
  6. echo ". . 64 bit architecture detected, attempting install anyways";
  7. sudo dpkg -i --force-architecture $TOINSTALL
  8. elif [ "`uname -m | awk '$1 ~ /i.86/'`" ]; then
  9. sudo dpkg -i $TOINSTALL
  10. else
  11. echo ". . ERROR: Unknown linux architecture, exiting without installing.";
  12. ERROR=-1
  13. fi
  14. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement