reorganize image-extras
This commit is contained in:
parent
e4bc40f366
commit
303454c221
11
build.sh
11
build.sh
@ -25,8 +25,8 @@ fi
|
|||||||
BUILD=`dirname "$0"`"/build/"
|
BUILD=`dirname "$0"`"/build/"
|
||||||
BUILD=`absolutize $BUILD`
|
BUILD=`absolutize $BUILD`
|
||||||
IMGTEMPDIR="${BUILD}/openwrt-build-image-extras"
|
IMGTEMPDIR="${BUILD}/openwrt-build-image-extras"
|
||||||
IMGBUILDERDIR="${BUILD}/OpenWrt-ImageBuilder-15.05-rc1-ar71xx-generic.Linux-x86_64"
|
IMGBUILDERDIR="${BUILD}/OpenWrt-ImageBuilder-15.05-rc2-ar71xx-generic.Linux-x86_64"
|
||||||
IMGBUILDERURL="https://downloads.openwrt.org/chaos_calmer/15.05-rc1/ar71xx/generic/OpenWrt-ImageBuilder-15.05-rc1-ar71xx-generic.Linux-x86_64.tar.bz2"
|
IMGBUILDERURL="https://downloads.openwrt.org/chaos_calmer/15.05-rc2/ar71xx/generic/OpenWrt-ImageBuilder-15.05-rc2-ar71xx-generic.Linux-x86_64.tar.bz2"
|
||||||
|
|
||||||
PREINSTALLED_PACKAGES="wireless-tools firewall iptables"
|
PREINSTALLED_PACKAGES="wireless-tools firewall iptables"
|
||||||
PREINSTALLED_PACKAGES+=" ppp ppp-mod-pppoe ppp-mod-pppol2tp ppp-mod-pptp kmod-ppp kmod-pppoe"
|
PREINSTALLED_PACKAGES+=" ppp ppp-mod-pppoe ppp-mod-pppol2tp ppp-mod-pptp kmod-ppp kmod-pppoe"
|
||||||
@ -36,9 +36,10 @@ PREINSTALLED_PACKAGES+=" luci"
|
|||||||
mkdir --parents ${BUILD}
|
mkdir --parents ${BUILD}
|
||||||
|
|
||||||
rm -rf $IMGTEMPDIR
|
rm -rf $IMGTEMPDIR
|
||||||
cp -r image-extras $IMGTEMPDIR
|
cp -r image-extras/common $IMGTEMPDIR
|
||||||
if [ -e image-extras.$TARGET_PLATFORM/ ]; then
|
PER_PLATFORM_IMAGE_EXTRAS=image-extras/${TARGET_PLATFORM}/
|
||||||
rsync -pr image-extras.$TARGET_PLATFORM/ $IMGTEMPDIR/
|
if [ -e $PER_PLATFORM_IMAGE_EXTRAS ]; then
|
||||||
|
rsync -pr $PER_PLATFORM_IMAGE_EXTRAS $IMGTEMPDIR/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -e ${IMGBUILDERDIR} ]; then
|
if [ ! -e ${IMGBUILDERDIR} ]; then
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
|
|
||||||
config interface 'loopback'
|
|
||||||
option ifname 'lo'
|
|
||||||
option proto 'static'
|
|
||||||
option ipaddr '127.0.0.1'
|
|
||||||
option netmask '255.0.0.0'
|
|
||||||
|
|
||||||
config interface 'lan'
|
|
||||||
option ifname 'eth0'
|
|
||||||
option type 'bridge'
|
|
||||||
option proto 'dhcp'
|
|
1
image-extras/TLMR3020/etc/config/placeholder
Normal file
1
image-extras/TLMR3020/etc/config/placeholder
Normal file
@ -0,0 +1 @@
|
|||||||
|
# this is just a file to show how platform specific image extras can be specified
|
Loading…
x
Reference in New Issue
Block a user