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 + +