Index: ipk/source.sh4/feed_enigma/CONTROL/postinst
===================================================================
--- ipk/source.sh4/feed_enigma/CONTROL/postinst	(revision 10624)
+++ ipk/source.sh4/feed_enigma/CONTROL/postinst	(revision 10675)
@@ -3,4 +3,14 @@
 echo "successfully installed"
 echo "syncing disk"
+
+SECRET=`cat /var/etc/ipkg/secret-feed.conf`
+
+if [ `cat /var/etc/ipkg/official-feed.conf | grep "$SECRET" | wc -l` -eq 0 ]; then
+	OLD=`cat /var/etc/ipkg/official-feed.conf`	
+	mv /var/etc/ipkg/official-feed.conf /var/etc/ipkg/official-feed.conf.secret
+	echo "$OLD" > /var/etc/ipkg/official-feed.conf
+	echo "$SECRET" >> /var/etc/ipkg/official-feed.conf
+fi
+	
 sync
 exit 0
