2017-11-23 16:44:46 +00:00
|
|
|
#!/bin/bash
|
2017-01-18 16:21:43 +00:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
. scripts/modules.sh
|
2018-07-11 19:47:50 +00:00
|
|
|
. 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
|
|
|
|
|
|
|
(
|
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
|