gluon/scripts/feeds.sh

24 lines
416 B
Bash
Raw Normal View History

#!/bin/bash
2017-01-18 16:21:43 +00:00
set -e
. scripts/modules.sh
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
(
2018-07-10 20:57:40 +00:00
echo 'src-link gluon_base ../../package'
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