gluon/scripts/feeds.sh
Matthias Schiffer becc90d818
build: delete lede/tmp on module updates
LEDE doesn't always notice that the metadata needs to be refreshed.
2017-10-29 18:44:30 +01:00

31 lines
539 B
Bash
Executable File

#!/bin/sh
set -e
. scripts/modules.sh
FEEDS="$GLUON_SITE_FEEDS $GLUON_FEEDS"
(
cat lede/feeds.conf.default
echo 'src-link gluon ../../package'
for feed in $FEEDS; do
echo "src-link packages_$feed ../../packages/$feed"
done
) > lede/feeds.conf
rm -rf lede/tmp
rm -rf lede/feeds
rm -rf lede/package/feeds
mkdir -p lede/overlay
rm -f lede/overlay/gluon
ln -s ../../overlay lede/overlay/gluon
lede/scripts/feeds update 'gluon'
for feed in $FEEDS; do
lede/scripts/feeds update "packages_$feed"
done
lede/scripts/feeds install -a