feeds.sh 539 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/sh
  2. set -e
  3. . scripts/modules.sh
  4. FEEDS="$GLUON_SITE_FEEDS $GLUON_FEEDS"
  5. (
  6. cat lede/feeds.conf.default
  7. echo 'src-link gluon ../../package'
  8. for feed in $FEEDS; do
  9. echo "src-link packages_$feed ../../packages/$feed"
  10. done
  11. ) > lede/feeds.conf
  12. rm -rf lede/tmp
  13. rm -rf lede/feeds
  14. rm -rf lede/package/feeds
  15. mkdir -p lede/overlay
  16. rm -f lede/overlay/gluon
  17. ln -s ../../overlay lede/overlay/gluon
  18. lede/scripts/feeds update 'gluon'
  19. for feed in $FEEDS; do
  20. lede/scripts/feeds update "packages_$feed"
  21. done
  22. lede/scripts/feeds install -a