SHARE
TWEET

shar prefix for deb installation

a guest Jan 9th, 2014 38 Never
  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
RAW Paste Data
Top