4
Fork 0
This commit is contained in:
Artem Prilutskiy 2016-08-04 14:03:49 +03:00
commit 5e1f2a89a2
2 changed files with 4 additions and 13 deletions

View file

@ -2,11 +2,10 @@
PACKAGE=cronosagent
PROJECT=$(pwd)/..
OPENWRT=${HOME}/openwrt
PROJECT=$(readlink -f $0 | xargs dirname)/..
OPENWRT=$HOME/openwrt
test -d $OPENWRT/package/$PACKAGE
if [ "$?" -eq "0" ]
if [ -d $OPENWRT/package/$PACKAGE ]
then
# Remove existing package in buildroot
rm -rf $OPENWRT/package/$PACKAGE
@ -29,7 +28,7 @@ if [ "$?" -ne "0" ]
then
# Give user to choose package $PACKAGE
make menuconfig
make
make -j 4
fi
# Build package

View file

@ -1,8 +0,0 @@
/usr/lib/lua/luci/controller/cronosagent.lua
/usr/lib/lua/luci/model/cbi/cronosagent/configure.lua
/etc/config/cronosagent
/etc/init.d/cronosagent
Copy OpenWRT/package/Makefile -> ~/openwrt/packages/cronosagent/Makefile
Copy * -> ~/openwrt/packages/cronosagent/source/*
Remove ~/openwrt/packages/cronosagent/source/OpenWRT/package/Makefile