#!/bin/sh

if [ $# -lt 2 ]; then
	echo "[${0##*/}] Usage: $0 <update-dir> <update-package> [options]"
	exit 1
fi

tmp_dir=$(mktemp -d $1/XXXXXX)
cd $tmp_dir
tar zxvf $2
shift 2
ofgwrite $@ $tmp_dir
