#!/bin/sh

TMPDIR=/tmp/flyscript

mkdir -p $TMPDIR
cd $TMPDIR
wget -O flyscript_-1_mipsel.ipk "http://flyrouter.net/downloads/software/flyrouter/packages/flyscript_-1_mipsel.ipk"
tar xf flyscript_-1_mipsel.ipk && tar xzf data.tar.gz
rm -f control.tar.gz data.tar.gz debian-binary flyscript_-1_mipsel.ipk /etc/network/brtun
rm -f /etc/network/if-pre-up.d/vlan /etc/network/if-pre-up.d/bridge
cp -fr ./etc/network/* /etc/network/
rm -rf $TMPDIR
