From 01fd665c515e8d27261ba0f881924df9bb6b13a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20H=C3=B6glund?= Date: Tue, 12 Apr 2016 16:02:21 +0200 Subject: [PATCH] Added iop_feeds_update to iop/scripts --- iop/scripts/iop_feeds_update.sh | 54 +++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100755 iop/scripts/iop_feeds_update.sh diff --git a/iop/scripts/iop_feeds_update.sh b/iop/scripts/iop_feeds_update.sh new file mode 100755 index 000000000..80019988b --- /dev/null +++ b/iop/scripts/iop_feeds_update.sh @@ -0,0 +1,54 @@ +#! /bin/bash +developer=0 + +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 + +#if -d argument is passed, clone feeds with ssh instead of http +if [ $developer == 1 ]; then + ./scripts/feeds update -g +else + ./scripts/feeds update +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 +./scripts/feeds install -f -p feed_inteno_targets iopsys-brcm63xx-mips +./scripts/feeds install -f -p feed_inteno_targets iopsys-brcm63xx-arm +./scripts/feeds install -a +./scripts/feeds uninstall asterisk18 +./scripts/feeds uninstall zstream +./scripts/feeds uninstall mtd-utils +./scripts/feeds install -f -p feed_inteno_packages mtd-utils +./scripts/feeds uninstall qrencode +./scripts/feeds install -f -p feed_inteno_packages qrencode + +rm -rf package/feeds/oldpackages/libzstream # have to run this for now since uninstall is not working every time + +cp .genconfig_config_bak .config +make defconfig + +# record when we last run this script +touch tmp/.iop_bootstrap + +# always return true +exit 0 + +