gluon/scripts/feeds.sh
Matthias Schiffer 63c16c01a0
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.
2018-07-11 21:47:50 +02:00

25 lines
443 B
Bash
Executable File

#!/bin/bash
set -e
. scripts/modules.sh
. scripts/default_feeds.sh
rm -rf openwrt/tmp
rm -rf openwrt/feeds
rm -rf openwrt/package/feeds
(
echo 'src-link gluon_base ../../package'
for feed in $FEEDS; do
echo "src-link $feed ../../packages/$feed"
done
for feed in $(echo "$DEFAULT_FEEDS" | grep -vxF "$FEEDS"); do
echo "src-dummy $feed"
done
) > openwrt/feeds.conf
openwrt/scripts/feeds update -a
openwrt/scripts/feeds install -a