Add -n option to feeds update to disable override for feed_inteno_openwrt

This commit is contained in:
Jonas Höglund 2016-08-23 13:38:04 +02:00
parent 2c5eb37f46
commit 525f6a0eff

View file

@ -3,21 +3,19 @@
function feeds_update {
developer=0
override=1
while getopts "n" opt; do
case $opt in
n)
override=0
;;
esac
done
git remote -v | grep -q http || developer=1
#while getopts "d" opt; do
# case $opt in
# d)
# developer=1
# ;;
# \?)
# echo "Invalid option: -$OPTARG" >&2
# exit 1
# ;;
# esac
#done
cp .config .genconfig_config_bak
rm -rf package/feeds
@ -28,9 +26,10 @@ function feeds_update {
else
./scripts/feeds update
fi
./scripts/feeds install -f -p feed_inteno_openwrt -a
if [ $override == 1 ]; then
./scripts/feeds install -f -p feed_inteno_openwrt -a
fi
./scripts/feeds install -f -p feed_inteno_juci -a
./scripts/feeds install -f -p feed_inteno_packages -a
./scripts/feeds install -f -p feed_inteno_broadcom -a