Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

shar prefix for deb installation

By: a guest on Jan 9th, 2014  |  syntax: Bash  |  size: 0.21 KB  |  views: 35  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/sh
  2. if [ "$(id -u)" != "0" ]; then
  3.         echo "ERROR: Must be run as root"
  4.         exit 1
  5. fi
  6. if [ "$1" != "xxx" ]; then
  7.         D=$(readlink -f $0)
  8.         X=$(mktemp -d)
  9.         cd $X
  10.         sh $D xxx
  11.         dpkg -i *.deb
  12.         rm -rv $X
  13.         exit 0
  14. fi