Index: ipk/source/emus_mbox0.4_0023/CONTROL/control
===================================================================
--- ipk/source/emus_mbox0.4_0023/CONTROL/control	(revision 4913)
+++ ipk/source/emus_mbox0.4_0023/CONTROL/control	(revision 4913)
@@ -0,0 +1,10 @@
+Package: enigma2-plugin-emus-mbox.v0.4b0023
+Version: 0.4
+Architecture: sh4
+OE: mbox 0.4 build0023
+Section: extra
+Priority: optional
+Maintainer: AAF
+Homepage: http://www.aaf-digital.info
+Source: http://www.aaf-digital.info
+Description: Emu MBox v0.4 build 0023 for your AAF- Duckbox
Index: ipk/source/emus_mbox0.4_0023/CONTROL/postinst
===================================================================
--- ipk/source/emus_mbox0.4_0023/CONTROL/postinst	(revision 4913)
+++ ipk/source/emus_mbox0.4_0023/CONTROL/postinst	(revision 4913)
@@ -0,0 +1,21 @@
+#!/bin/sh
+TMP=/tmp/.mbox
+PLUGINDIR=/var/emu
+CONFIGDIR=/var/etc
+if [ ! -e /var/keys/cwshare.cfg ]; then
+	echo "renaming cwshare.cfg.mbox -> cwshare.cfg"
+	mv /var/keys/cwshare.cfg.mbox /var/keys/cwshare.cfg
+fi
+if [ ! -e /var/keys/mbox.cfg ]; then
+	echo "rename mbox.cfg.mbox -> mbox.cfg"
+	mv /var/keys/mbox.cfg.mbox /var/keys/mbox.cfg
+fi
+echo "successfully installed"
+echo "syncing disk"
+sync
+if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
+	SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
+	FREE=`expr $SPACE - 100`
+	echo new freespace size $FREE kb
+fi
+exit 0
Index: ipk/source/emus_mbox0.4_0023/CONTROL/postrm
===================================================================
--- ipk/source/emus_mbox0.4_0023/CONTROL/postrm	(revision 4913)
+++ ipk/source/emus_mbox0.4_0023/CONTROL/postrm	(revision 4913)
@@ -0,0 +1,11 @@
+#!/bin/sh
+TMP=/tmp/.mbox
+echo "successfully removed"
+echo "syncing disk"
+sync
+if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
+	SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
+	FREE=`expr $SPACE - 100`
+	echo new freespace size $FREE kb
+fi
+exit 0
Index: ipk/source/emus_mbox0.4_0023/CONTROL/preinst
===================================================================
--- ipk/source/emus_mbox0.4_0023/CONTROL/preinst	(revision 4913)
+++ ipk/source/emus_mbox0.4_0023/CONTROL/preinst	(revision 4913)
@@ -0,0 +1,44 @@
+#!/bin/sh
+#
+TMP=/tmp/.mbox
+echo "syncing disk"
+sync
+
+model=`cat /etc/model`
+echo""
+echo "Checking your Boxtype...."
+echo "Some Plugins will not work correctly on your $model!"
+echo ""
+if [ "$model" = "" ]; then
+	echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
+	echo "Aborting installation..."
+	exit 1
+else
+	echo "Boxtype: $model OK"
+fi
+
+if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
+	SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
+	FREE=`expr $SPACE - 100`
+	SIZE=172
+	echo "checking freespace"
+	echo packege size $SIZE kb
+	echo freespace size $FREE kb
+	if  [ "$FREE" -lt "$SIZE" ]; then
+		echo "sorry no freespace left on device"
+		exit 1
+	else
+		echo ok
+	fi
+fi   
+echo "installing mbox ..."
+echo "checking OS"
+if  [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then                      
+	echo ---------------------------
+	echo DONT USE this IPK Package!!
+	echo ---
+	echo Only for AAF Image!!
+	echo ---------------------------
+	exit 1
+fi
+exit 0
Index: ipk/source/emus_mbox0.4_0023/CONTROL/prerm
===================================================================
--- ipk/source/emus_mbox0.4_0023/CONTROL/prerm	(revision 4913)
+++ ipk/source/emus_mbox0.4_0023/CONTROL/prerm	(revision 4913)
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+echo "syncing disk"
+sync
+if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
+	SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
+	FREE=`expr $SPACE - 100`
+	echo freespace size $FREE kb
+fi
+if [ ! -e /var/keys/cwshare.cfg.mbox ]; then
+	echo "renaming cwshare.cfg -\> cwshare.cfg.mbox"
+	mv /var/keys/cwshare.cfg /var/keys/cwshare.cfg.mbox
+fi
+if [ ! -e /var/keys/mbox.cfg.mbox ]; then
+	echo "renaming mbox.cfg -\> mbox.cfg.mbox"
+	mv /var/keys/mbox.cfg /var/keys/mbox.cfg.mbox
+fi
+echo "removing mbox"
+exit 0
Index: ipk/source/emus_mbox0.4_0023/var/etc/mbox_0.4_0023.emu
===================================================================
--- ipk/source/emus_mbox0.4_0023/var/etc/mbox_0.4_0023.emu	(revision 4913)
+++ ipk/source/emus_mbox0.4_0023/var/etc/mbox_0.4_0023.emu	(revision 4913)
@@ -0,0 +1,4 @@
+emuname = Mbox_V0.4-0023
+binname = mbox_0.4_0023
+startcam = /var/bin/mbox_0.4_0023 /var/keys/mbox.cfg
+stopcam = touch /tmp/mbox.kill
Index: ipk/source/emus_mbox0.4_0023/var/keys/add.data
===================================================================
--- ipk/source/emus_mbox0.4_0023/var/keys/add.data	(revision 4913)
+++ ipk/source/emus_mbox0.4_0023/var/keys/add.data	(revision 4913)
@@ -0,0 +1,11 @@
+#G: { ip { port1 port2 { pass  { level1 level 2 }}}} -> remove running D line
+G: { ip { port1 port2 { pass  { level1 level 2 }}}} -> add new D line without restarting mbox,new D line will be saved in cwshare.cfg
+R	->Resend hello msg to all peers
+X: { x } -> Change running X value
+I: { x } -> Change running I value
+O: { xxxx yyyy } -> Change running timeout intervals
+N: { xxxx yyyy } -> Change running timeout intervals for NDS system
+C: { server_ip server_listening_port username password des_key } { x } { xxxxyyyy:xxxxyyyy;......} { xxxx:xxxx:xxxx:.......}  -> add new C line
+H: { x } -> Change local card priority
+W: { xxyy } -> Get current dcw caches from peer who has xxyy(in hexadecimal)ServerID only for mbox peers !!!
+J: { x } -> enable/disable adding betacrypt header to N3 ecm, for Premier
Index: ipk/source/emus_mbox0.4_0023/var/keys/cwshare.cfg.mbox
===================================================================
--- ipk/source/emus_mbox0.4_0023/var/keys/cwshare.cfg.mbox	(revision 4913)
+++ ipk/source/emus_mbox0.4_0023/var/keys/cwshare.cfg.mbox	(revision 4913)
@@ -0,0 +1,54 @@
+# allow maximum 06 share level for recieved card data
+I: { 05 }
+
+#    01 repeat EMM's
+#    00 consider every EMM only once
+#       01 restart pid on overflow
+#          1* reset ENX on every channel change
+#          *1 check/reset ENX freezes on FTA
+#          *2 check/reset ENX freezes on PayTV
+#          *3 check/reset ENX freezes on FTA and PayTV
+#             00 write nothing in atack.txt
+#             01 write into atack.txt: password is wrong
+#             02 write into atack.txt: ID unknown
+#             04 write into atack.txt: IP is wrong
+#             08 write into atack.txt: port is worng
+#             10 write into atack.txt: share.stat
+#             20 create online.log for online/offline logging
+#             3F write everything. (combine bits for other combinations)
+#                4000 send ecm again after 4 Seconds if no reply.
+#                     6000 resync decode after 6 Seconds if net decode failed
+N: { 00 01 03 1F 4000 6000 }
+
+# Send ECM's at maximum 5 cards (please use this as default)
+X: { 10 }
+
+# Send ECM's in any case to these card ID's, even they are more then X:
+# some examples ...
+#G: { 17020000 1235 }
+
+
+O: { 4000 2000 }
+
+# For W: please read the cwshare.txt, here only some examples
+# use card 1 only for the following pids
+#W: { 01 02 02 } 1022 100A 100B 102B 1009 101D 1029 1014 1011 101B
+# don't use card 2 for the following pids
+#W: { 02 03 03 } 1008 1016
+
+# S: is the same as W:, just using the SID instead of the ECMPID
+
+# cwshare.cfg --- ufs910 --- internet and local network
+#
+#                            password
+M: { 192.168.0.25    { 20000000 }}
+#M: { my2ndufs910.homedns.net    { BC242456 }}
+
+#    Internet Friends       port range   password   cod
+#G: { friend1.homeip.net    { 8010 8010 { B142AB11 { 5 5 }}}}
+#G: { friend2.homelinux.net { 8010 8010 { 81BFF901 { 5 5 }}}}
+
+#    other local boxes
+G: { 192.168.0.17          { 2499 2499 { 20000001 { 5 5 }}}}
+#G: { 192.168.0.52          { 8020 8020 { BA334B24 { 5 5 }}}}
+#G: { 192.168.1.11          { 2499 2499 { BA334B24 { 5 5 }}}}
Index: ipk/source/emus_mbox0.4_0023/var/keys/mbox.cfg.mbox
===================================================================
--- ipk/source/emus_mbox0.4_0023/var/keys/mbox.cfg.mbox	(revision 4913)
+++ ipk/source/emus_mbox0.4_0023/var/keys/mbox.cfg.mbox	(revision 4913)
@@ -0,0 +1,138 @@
+
+//mbox.cfg EXPLANATION and EXAMPLES
+
+D: { 4 }
+
+//D: { x }
+//x=0 -> disable 
+//x=1 -> enable dbox2 cw writing
+//x=2 -> enable STAPI for IPBOX
+//x=3 -> enable STAPI for Kathrein
+//x=4 -> enable Linux DVB API for Kathrein
+//default disabled
+
+B: { 0 }
+
+//B: { x }
+//x=0 -> disable local UDP ports 8004-80xx ,this ports are used with DVB cards and gbox plugin (Windows and Linux)
+//x=1 -> enable 
+//default disabled
+
+
+Z: { 13 } { 192.168.0.100 }   
+
+//  Z option -> control sending/writing current informations
+//  Z: { xy } { IP port } 
+//   x=0 -> don't print time stamp (in console screen and in debug file)
+//   x=1 -> print time stamp ( .... )
+//   y=0 -> no writing/sending informations to debug file/destination IP
+//   y=1 -> send informations to destination IP but not in debug file
+//   y=2 -> write informations to debug file but don't send to destination IP
+//   y=3 -> write/send informations to debug file/destination IP
+//   IP port -> destination IP and UDP port where to send informations
+//  no default
+
+
+
+//C: { 192.168.0.1 }
+
+// C option -> control receiving some command messages localy or from another IP
+// C: { IP port }
+// IP-> your local IP or you DNS
+// port -> on what port you will be waiting command messages
+// no default
+
+
+U: { 1 }
+
+// U options -> Update peer(s) IP if it changes while peer still resending ecm's/cw etc.. information
+// default only on hello message peer(s) IP are updated !!!
+// U: { x }
+// x=0 -> disabled
+// x=1 -> enabled
+// default disabled
+
+
+
+L: { 1 }
+
+// L option -> how mbox to menage virtual card(s) with level 0 
+// ( only for peer(s) who have and can reshare virtual cards but don't want to use LEVEL 0 card(s) for them self)
+// L: { x }
+// x=0 -> don't load any virtual cards with LEVEL 0, you can't use them for your self
+// x=1 -> load all virtual cards with LEVEL 0 ,you will be using them for your self
+// default 1
+
+
+#G: { /hdd/ }
+
+//G option -> redirect writing ONLY debug.txt file to internal or external HDD in receivers or for any other reason.
+//Remove #, ONLY if you want to use this option !!!!!!!
+
+
+T: { /tmp/ }
+
+// T option -> where to store temp files ... (share.info,debug.txt ,etc.)
+// T: { folder_path_to_files, example: T: { /tmp/ } }
+
+
+
+K: { /var/keys/ }
+
+// K option -> where is cwshare.cfg file
+// K: { folder_path_to_files, example: K: { /var/keys/ } }
+
+
+E: { 1 }
+
+// E option -> disable same cards from peers
+// E: { x }
+// x=0 -> use same cards(boxids) from peers
+// x=1 -> don't use same cards(boxids) from peers
+// default 1
+
+M: { 1 }
+
+// M option -> Mode option
+// M: { x }
+// x=0 -> local mode no NET
+// x=1 -> NET mode
+// default 0
+
+P: { 2/tmp/camd.socket }
+
+// P option -> PMT location (Dont used with linux and windows)
+// you must be tuned to channel so image can generate this file
+// { /tmp/pmt.tmp } for receivers and images that create this file <- use this if you can
+// { 1/tmp/camd.socket } for enigma 1
+// { 2/tmp/camd.socket } for enigma 2
+
+W: { 0 }
+
+// W option -> write raw ECM to ecm.raw file
+// W: { x }
+// x=0 -> disabled
+// x=1 -> enabled
+// default disabled
+
+H: { 0 }
+
+//H option -> C line priority over network cards
+// H: { x }
+// x=0 -> disabled -> newtwork cards and local cards has same priority
+// x=1 -> enabled -> your local cards has priority, no network cards used
+// default disabled 
+
+
+Q: { 300 }
+
+//Q option -> newcamd connect retry in sec.
+//Q: { x }
+// default 300 sec.
+
+
+F: { 500 }
+
+//F option -> reset writing debug.txt from begining if file size is higher then (x)(KB)
+//F { x } -> decimal in KBytes
+//default 500 KB
Index: ipk/source/emus_mbox0.4_0023/var/keys/port.list
===================================================================
--- ipk/source/emus_mbox0.4_0023/var/keys/port.list	(revision 4913)
+++ ipk/source/emus_mbox0.4_0023/var/keys/port.list	(revision 4913)
@@ -0,0 +1,40 @@
+
+
+R: { 1000 } // check every 1000 ms(NO LOWER VALUE THEN 1000 ms!!!) if maybe Newcs reinit card but mbox didnt recognized that,defualt value is 5 seconds in code if you dont set R option.
+
+E: { ABCD } // in hex , you CAN DECRYPT ECM from this ECM pid, useful for combination with SID/CHID (YOU CAN MIX WITH SID/CHID).
+//Max ECM pids per C line is 500 !!!
+
+
+
+//this is for forbiden SID pids or Irdeto chids ..
+//EXAMPLE VALUES
+
+SF: { 04A0 } //in hex -> forbiden SID pid -> your card cant decrypt this channel
+SF: { 0220 } 
+
+IF: { 0203 } //in hex -> forbiden Irdeto ChID -> your card cant decrypt this ChID
+IF: { 0302 }
+
+
+
+
+//OR to enable SID pids or Irdeto chids
+//EXAMPLE VALUES
+
+SA: { 04A0 }//in hex  -> enable SID pid -> your card can decrypt this channel
+SA: { 0220 } 
+
+IA: { 0203 } //in hex -> enable Irdeto ChID -> your card can decrypt this ChID
+IA: { 0302 }
+
+
+
+///////////////////////////
+//EXAMPLE//
+G: { 0100006A }//in hex  -> dont list and reshare this provid from your card if card cant decrypt that, mbox will just flood newcs with bad ECMs for this provid.
+
+
+
+//max forbiden SID pids or ChIDs is 500!!!!
+//max G lines is 15!!!
Index: ipk/source/emus_vizcam_1_03/CONTROL/control
===================================================================
--- ipk/source/emus_vizcam_1_03/CONTROL/control	(revision 4913)
+++ ipk/source/emus_vizcam_1_03/CONTROL/control	(revision 4913)
@@ -0,0 +1,10 @@
+Package: enigma2-plugin-emus-vizcam.v1.03
+Version: 1.03
+Architecture: sh4
+OE: VizCam v1.03
+Section: extra
+Priority: optional
+Maintainer: AAF
+Homepage: http://www.aaf-digital.info
+Source: http://www.aaf-digital.info
+Description: Emu VizCam v1.03 for your AAF- Duckbox. YOU MUST DOWNLOAD NEW CONFIG (KEYS SECTION) OR USE YOUR OWN
Index: ipk/source/emus_vizcam_1_03/CONTROL/postinst
===================================================================
--- ipk/source/emus_vizcam_1_03/CONTROL/postinst	(revision 4913)
+++ ipk/source/emus_vizcam_1_03/CONTROL/postinst	(revision 4913)
@@ -0,0 +1,20 @@
+#!/bin/sh
+TMP=/tmp/.VizCam
+PLUGINDIR=/var/bin
+CONFIGDIR=/var/etc
+
+echo "successfully installed"
+echo "syncing disk"
+sync
+if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
+	SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
+	FREE=`expr $SPACE - 100`
+	echo new freespace size $FREE kb
+fi
+
+echo "--------"
+echo "WARNING: THIS PACKAGE DOES NOT CONTAIN ANY CONFIG FILES!! YOU CAN DOWNLOAD CONFIGS IN KEYS SECTION OR YOU HAVE TO USE YOUR OWN CONFIG"
+echo "--------"
+echo "ACHTUNG: DIESES PAKET ENTHAELT KEINE CONFIG DATEIEN!!! DU KANNST IN DER SEKTION KEYS CONFIGS HERUNTERLADEN ODER DEINE BEREITS BESTEHENDE NUTZEN"
+echo "--------"
+exit 0
Index: ipk/source/emus_vizcam_1_03/CONTROL/postrm
===================================================================
--- ipk/source/emus_vizcam_1_03/CONTROL/postrm	(revision 4913)
+++ ipk/source/emus_vizcam_1_03/CONTROL/postrm	(revision 4913)
@@ -0,0 +1,11 @@
+#!/bin/sh
+TMP=/tmp/.VizCam
+echo "successfully removed"
+echo "syncing disk"
+sync
+if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
+	SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
+	FREE=`expr $SPACE - 100`
+	echo new freespace size $FREE kb
+fi
+exit 0
Index: ipk/source/emus_vizcam_1_03/CONTROL/preinst
===================================================================
--- ipk/source/emus_vizcam_1_03/CONTROL/preinst	(revision 4913)
+++ ipk/source/emus_vizcam_1_03/CONTROL/preinst	(revision 4913)
@@ -0,0 +1,45 @@
+#!/bin/sh
+#
+TMP=/tmp/.VizCam
+echo "syncing disk"
+sync
+
+model=`cat /etc/model`
+echo""
+echo "Checking your Boxtype...."
+echo "Some Plugins will not work correctly on your $model!"
+echo ""
+if [ "$model" = "" ]; then
+	echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
+	echo "Aborting installation..."
+	exit 1
+else
+	echo "Boxtype: $model OK"
+fi
+
+if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
+	SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
+	FREE=`expr $SPACE - 100`
+	SIZE=530
+	echo "checking freespace"
+	echo packege size $SIZE kb
+	echo freespace size $FREE kb
+	if  [ "$FREE" -lt "$SIZE" ]; then
+		echo "sorry no freespace left on device"
+		exit 1
+	else
+		echo ok
+	fi
+fi   
+echo "installing VizCam ..."
+echo "checking OS"
+if  [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then                      
+	echo ---------------------------
+	echo DONT USE this IPK Package!!
+	echo ---
+	echo Only for AAF Image!!
+	echo ---------------------------
+	exit 1
+fi
+
+exit 0
Index: ipk/source/emus_vizcam_1_03/CONTROL/prerm
===================================================================
--- ipk/source/emus_vizcam_1_03/CONTROL/prerm	(revision 4913)
+++ ipk/source/emus_vizcam_1_03/CONTROL/prerm	(revision 4913)
@@ -0,0 +1,15 @@
+#!/bin/sh
+TMP=/tmp/.VizCam
+
+echo "syncing disk"
+sync
+if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
+	SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
+	FREE=`expr $SPACE - 100`
+	echo freespace size $FREE kb
+fi
+
+echo "removing VizCam"
+
+exit 0
+
Index: ipk/source/emus_vizcam_1_03/var/etc/vizcam_1.03.emu
===================================================================
--- ipk/source/emus_vizcam_1_03/var/etc/vizcam_1.03.emu	(revision 4913)
+++ ipk/source/emus_vizcam_1_03/var/etc/vizcam_1.03.emu	(revision 4913)
@@ -0,0 +1,4 @@
+emuname  =vizcam v1.03
+binname  =vizcam_1.03
+startcam =/var/emu/vizcam_1.03
+stopcam  =kill `cat /tmp/vizcam.pid`
