#!/bin/bash # Hack to download and unpack OpenWRT packages for use with shfsmount. [ -z "$1" ] && echo "usage: $0 " && exit 1 FILE=ipk/`basename $1` # Get file if necessary [ -f $FILE ] || wget "$1" -O "$FILE" tar vxf "$FILE" tar vxf "data.tar.gz" rm -f data.tar.gz control.tar.gz debian-binary ## I'm currently using this one: ## http://downloads.openwrt.org/kamikaze/8.09/brcm-2.4/packages