#!/bin/bash PY=python [[ -e /usr/bin/python3 ]] && PY=python3 BASE_FEED=http://updates.mynonpublic.com/oea export D=${D} get_oever() { OEVER=$($PY - </dev/null 2>&1 || true fi done rm $D/etc/opkg/secret-feed.conf >/dev/null 2>&1 || true rm $D/etc/opkg/deb-feed.conf >/dev/null 2>&1 || true # Install new feed echo src/gz ${ARCH}-3rdparty-secret-feed $BASE_FEED/$OEVER/$ARCH > $D/etc/opkg/${ARCH}-3rdparty-secret-feed.conf # Delete remainders of old CAMs if [ -e "$D/etc/init.d/softcam" ]; then if [ "$D/etc/init.d/softcam.cam1" == "`readlink -f $D/etc/init.d/softcam`" ]; then rm $D/etc/init.d/softcam`>/dev/null 2>&1 || true fi if [ "$D/etc/init.d/softcam.cam2" == "`readlink -f $D/etc/init.d/softcam`" ]; then rm $D/etc/init.d/softcam`>/dev/null 2>&1 || true fi fi if [ ! -e "$D/etc/init.d/softcam" ]; then ln -s "softcam.None" "$D/etc/init.d/softcam" fi rm $D/etc/*.emu >/dev/null 2>&1 || true rm $D/etc/init.d/softcam.cam1 >/dev/null 2>&1 || true rm $D/etc/init.d/softcam.cam2 >/dev/null 2>&1 || true if [ $(basename $0) == "bash" -o $(basename $0) == "sh" -o $(basename $0) == "feed" -o $(basename $0) == "feed2" ]; then opkg update >/dev/null 2>&1 opkg --force-reinstall install softcam-feed-universal >/dev/null 2>&1 fi echo " SoftCAM Feed Universal2 (secret feed) succesfully installed ... " exit 0