scripts: move DEFAULT_FEEDS definition to a separate file

modules.sh can't depend on openwrt/feeds.conf.default, otherwise the
initial update will fail.
This commit is contained in:
Matthias Schiffer 2018-07-11 21:47:50 +02:00
parent 9906d69322
commit 63c16c01a0
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
4 changed files with 3 additions and 1 deletions

1
scripts/default_feeds.sh Normal file
View File

@ -0,0 +1 @@
DEFAULT_FEEDS="$(awk '{print $2}' openwrt/feeds.conf.default)"

View File

@ -3,6 +3,7 @@
set -e
. scripts/modules.sh
. scripts/default_feeds.sh
rm -rf openwrt/tmp

View File

@ -2,7 +2,6 @@
[ ! -f "$GLUON_SITEDIR"/modules ] || . "$GLUON_SITEDIR"/modules
FEEDS="$(echo $GLUON_FEEDS $GLUON_SITE_FEEDS | tr ' ' '\n')"
DEFAULT_FEEDS="$(awk '{print $2}' openwrt/feeds.conf.default)"
GLUON_MODULES=openwrt

View File

@ -2,6 +2,7 @@
. scripts/modules.sh
. scripts/default_feeds.sh
config "CONFIG_GLUON_SITEDIR=\"$GLUON_SITEDIR\""