opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

extract.sh (174B)


      1 file=$1
      2 shift
      3 
      4 case $file in
      5 *.tar.gz|*.tgz) tool=gzip  ;;
      6 *.tar.bz2)      tool=bzip2 ;;
      7 *.tar.xz)       tool=xz    ;;
      8 *) exit 0
      9 esac
     10 
     11 "$tool" -d -c "$file" | "$PAX" -r "$@"