feeds.sh 523 B

1234567891011121314151617181920212223242526272829
  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/feeds
  13. rm -rf lede/package/feeds
  14. mkdir -p lede/overlay
  15. rm -f lede/overlay/gluon
  16. ln -s ../../overlay lede/overlay/gluon
  17. lede/scripts/feeds update 'gluon'
  18. for feed in $FEEDS; do
  19. lede/scripts/feeds update "packages_$feed"
  20. done
  21. lede/scripts/feeds install -a