#!/bin/bash PACKAGE=cronosagent PROJECT=$(pwd)/.. OPENWRT=${HOME}/openwrt rm -rf $OPENWRT/package/$PACKAGE mkdir -p $OPENWRT/package/$PACKAGE/source cp -R $PROJECT $OPENWRT/package/$PACKAGE/source rm $OPENWRT/package/$PACKAGE/source/OpenWRT/package/Makefile rm -rf $OPENWRT/package/$PACKAGE/source/.git pushd . cd $OPENWRT make popd