gluon/scripts/feeds.sh

25 lines
427 B
Bash
Raw Permalink Normal View History

#!/bin/bash
2017-01-18 16:21:43 +00:00
set -e
. scripts/modules.sh
. scripts/default_feeds.sh
2017-01-18 16:21:43 +00:00
2018-07-10 20:57:40 +00:00
rm -rf openwrt/tmp
rm -rf openwrt/feeds
rm -rf openwrt/package/feeds
2017-01-18 16:21:43 +00:00
(
echo "$GLUON_BASE_FEEDS"
2017-01-18 16:21:43 +00:00
for feed in $FEEDS; do
2018-07-10 20:57:40 +00:00
echo "src-link $feed ../../packages/$feed"
2017-01-18 16:21:43 +00:00
done
2018-07-10 20:57:40 +00:00
for feed in $(echo "$DEFAULT_FEEDS" | grep -vxF "$FEEDS"); do
echo "src-dummy $feed"
done
) > openwrt/feeds.conf
2017-01-18 16:21:43 +00:00
2018-07-10 20:57:40 +00:00
openwrt/scripts/feeds update -a
openwrt/scripts/feeds install -a