Index: /ipk/source.sh4/swapemus_gbox800/CONTROL/control
===================================================================
--- /ipk/source.sh4/swapemus_gbox800/CONTROL/control	(revision 9261)
+++ /ipk/source.sh4/swapemus_gbox800/CONTROL/control	(revision 9261)
@@ -0,0 +1,10 @@
+Package: enigma2-plugin-swapemus-gbox800
+Version: 800
+Architecture: sh4
+OE: gbox800 and Configs! SWAPSTICK IS NEEDED!
+Section: extra
+Priority: optional
+Maintainer: AAF
+Homepage: http://www.aaf-digital.info
+Source: http://www.aaf-digital.info
+Description: gbox800 and Configs! SWAPSTICK IS NEEDED!
Index: /ipk/source.sh4/swapemus_gbox800/CONTROL/postinst
===================================================================
--- /ipk/source.sh4/swapemus_gbox800/CONTROL/postinst	(revision 9261)
+++ /ipk/source.sh4/swapemus_gbox800/CONTROL/postinst	(revision 9261)
@@ -0,0 +1,57 @@
+#!/bin/sh
+TMP=/tmp/.gbox
+PLUGINDIR=/var/swap/bin
+CONFIGDIR=/var/swap/etc
+PLUGINDIR=/var/swap/keys
+
+
+if [ ! -e /var/swap/keys/cwshare.cfg.gbox ]; then
+	echo "use ipk config file: cwshare.cfg.gbox"
+	echo "rename /var/swap/keys/cwshare.cfg.gbox.gbox > /var/swap/keys/cwshare.cfg.gbox"
+	mv /var/swap/keys/cwshare.cfg.gbox.gbox /var/swap/keys/cwshare.cfg.gbox
+else
+	echo "found user config file: cwshare.cfg.gbox"
+	echo "skip ipk config file: cwshare.cfg.gbox.gbox"
+fi
+
+if [ ! -e /var/swap/keys/gbox_cfg]; then
+	echo "use ipk config file: gbox_cfg"
+	echo "rename /var/swap/keys/gbox_cfg.gbox > /var/swap/keys/gbox_cfg/"
+	mv /var/swap/keys/gbox_cfg.gbox /var/swap/keys/gbox_cfg
+else
+	echo "found user config file: gbox_cfg"
+	echo "skip ipk config file: gbox_cfg.gbox"
+fi
+
+if [ ! -e /var/swap/keys/ignore.list ]; then
+	echo "use ipk config file: ignore.list"
+	echo "rename /var/swap/keys/ignore.list.gbox > /var/swap/keys/ignore.list"
+	mv /var/swap/keys/ignore.list.gbox /var/swap/keys/ignore.list
+else
+	echo "found user config file: ignore.list"
+	echo "skip ipk config file: ignore.list.gbox"
+fi
+
+if [ ! -e /var/swap/keys/nagra ]; then
+	echo "use ipk config file: nagra"
+	echo "rename /var/swap/keys/nagra.gbox > /var/swap/keys/nagra"
+	mv /var/swap/keys/nagra.gbox /var/swap/keys/nagra
+else
+	echo "found user config file: nagra"
+	echo "skip ipk config file: nagra.gbox"
+fi
+
+if [ ! -e /var/swap/keys/softcam.cfg ]; then
+	echo "use ipk config file: softcam.cfg"
+	echo "rename /var/swap/keys/softcam.cfg.gbox > /var/swap/keys/softcam.cfg"
+	mv /var/swap/keys/softcam.cfg.gbox /var/swap/keys/softcam.cfg
+else
+	echo "found user config file: softcam.cfg"
+	echo "skip ipk config file: softcam.cfg.gbox"
+fi
+
+echo "successfully installed"
+echo "syncing disk"
+
+sync
+exit 0
Index: /ipk/source.sh4/swapemus_gbox800/CONTROL/postrm
===================================================================
--- /ipk/source.sh4/swapemus_gbox800/CONTROL/postrm	(revision 9261)
+++ /ipk/source.sh4/swapemus_gbox800/CONTROL/postrm	(revision 9261)
@@ -0,0 +1,9 @@
+#!/bin/sh
+TMP=/tmp/.gbox
+
+rm -r /var/swap/bin/gbox800_swap
+
+echo "successfully removed"
+echo "syncing disk"
+sync
+exit 0
Index: /ipk/source.sh4/swapemus_gbox800/CONTROL/preinst
===================================================================
--- /ipk/source.sh4/swapemus_gbox800/CONTROL/preinst	(revision 9261)
+++ /ipk/source.sh4/swapemus_gbox800/CONTROL/preinst	(revision 9261)
@@ -0,0 +1,41 @@
+#!/bin/sh
+#
+TMP=/tmp/.gbox
+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
+
+echo "checking swapstick"
+if [ ! -d /var/swap/bin/ ]; then
+  echo "--------------------------"
+	echo "no swapstick found...."
+	echo "--------------------------"
+	exit 1
+fi
+echo "swapstick found...."
+echo "installing gbox800 to swapstick..."
+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
+
+sync
+
+exit 0
Index: /ipk/source.sh4/swapemus_gbox800/CONTROL/prerm
===================================================================
--- /ipk/source.sh4/swapemus_gbox800/CONTROL/prerm	(revision 9261)
+++ /ipk/source.sh4/swapemus_gbox800/CONTROL/prerm	(revision 9261)
@@ -0,0 +1,33 @@
+#!/bin/sh
+TMP=/tmp/.gbox
+echo "syncing disk"
+
+if [ ! -e /var/swap/keys/cwshare.cfg.gbox ]; then
+	echo "remove ipk cwshare.cfg"
+	rm /var/swap/keys/cwshare.cfg
+fi
+
+if [ ! -e /var/swap/keys/gbox_cfg.gbox ]; then
+	echo "remove ipk gbox_cfg"
+	rm /var/swap/keys/gbox_cfg
+fi
+
+if [ ! -e /var/swap/keys/ignore.list.gbox ]; then
+	echo "remove ipk ignore.list"
+	rm /var/swap/keys/ignore.list
+fi
+
+if [ ! -e /var/swap/keys/nagra.gbox ]; then
+	echo "remove ipk nagra"
+	rm /var/swap/keys/nagra
+fi
+
+if [ ! -e /var/swap/keys/softcam.cfg.gbox ]; then
+	echo "remove ipk softcam.cfg"
+	rm /var/swap/keys/softcam.cfg
+fi
+
+sync
+echo "Removing gbox800 from Swapstick"
+exit 0
+
Index: /ipk/source.sh4/swapemus_gbox800/var/swap/etc/gbox_800.emu
===================================================================
--- /ipk/source.sh4/swapemus_gbox800/var/swap/etc/gbox_800.emu	(revision 9261)
+++ /ipk/source.sh4/swapemus_gbox800/var/swap/etc/gbox_800.emu	(revision 9261)
@@ -0,0 +1,4 @@
+emuname  =Gbox Version 800
+binname  =gbox_800_swap
+startcam =/var/swap/bin/gbox_800_swap &
+stopcam  =/var/swap/bin/killall -9 gbox_800_swap
Index: /ipk/source.sh4/swapemus_gbox800/var/swap/keys/camd3.config
===================================================================
--- /ipk/source.sh4/swapemus_gbox800/var/swap/keys/camd3.config	(revision 9261)
+++ /ipk/source.sh4/swapemus_gbox800/var/swap/keys/camd3.config	(revision 9261)
@@ -0,0 +1,71 @@
+# Wenn Parameter gebraucht wird - '#' (Kommentarzeichen) entfernen und eure Werte reinsetzen!!!!!
+#
+#
+# 
+# Boxtyp(optional):  1-dbox2, 2-dm7000, 3-dm7020, 4-dm500,
+# 										5-dm56xx/Triax, 7-elanvision, 9-server only, 10-relook, 11-dm600
+#											12-ufs910, 13-dm800
+# Default is 9 - server only
+BOXTYPE=13
+#
+# UDP Port(optional);  Defailt - 20248
+#UDP_PORT=24110
+
+# UDP Host(optional);  Defailt - any
+#UDP_HOST=192.168.0.1
+
+# HTTP Port(optional);  Defailt - 9080 ( 0: HTTP-server ausgeschaltet)
+#HTTP_PORT=9080
+
+# HOST Host(optional);  Defailt - any
+#HOST_HOST=192.168.0.1
+
+# HTTP Login: Default - admin:camd3
+#HTTP_ADMIN=admin
+#HTTP_PASSWORD=camd3
+
+# Log(optional): 0 - keine Ausgaben, 1-Datei, 2 - Console, 4 - UDP(syslog), 3 - Console+Datei, 5 - UDP+Datei, 6 - UDP+Console, 7-UDP+Console+Datei;  Default ist 2;
+#LOG=2
+
+# descrambler delax in ms
+#DESCR_DELAY=500
+
+# Host für UDP-logging
+#LOG_HOST=192.168.1.1
+
+# Port für UDP-logging(optional);  Default ist 514
+#LOG_PORT=514
+
+# DNS cache in sekunden;  Default ist 60 sec
+#DNS_CACHE=60
+
+
+# Logfile
+#LOG_FILE=/mnt/hdd/var/log/camd3.log
+
+# AU für original Slot dbox2 (optional): 1-ein, 0-aus;  Default ist 1
+#DBOX2_AU=0
+
+# Kartenslots (anzahl beliebig)
+# je eine Zeile für Slot:
+# SLOT=devicename:type:au_g:au_s:au_u:port:username:password(carddetect):deskey
+#
+# deskey für normale Slots ist optional, aber port,username und password müssen immer angegeben werden!!!
+#
+# für die Kartenleser(aber nicht multicam für dbox2) statt password, CTS oder CAR eingeben (carddetect - default - CAR)
+#
+# devicename: Pfad (volständig) zum Device, oder Hostname von cardserver(newcamd) - /dev/ttyS0...9 für win32-version
+# type: 1-serial, 2-intern(dreambox, elanvision, tripledragon), 4-cardserver(newcamd)
+# au_g: 1-eingeschaltet, 0-ausgeschaltet
+# au_s: 1-eingeschaltet, 0-ausgeschaltet
+# au_u: 1-eingeschaltet, 0-ausgeschaltet
+# port: port
+# username: loginname
+# password: loginpassword
+# deskey: cardserver deskey (14 byte)
+#SLOT=/dev/tts/0:1:1:1:1:997:com1:CAR
+#SLOT=/dev/ttyS0:1:1:1:1:997:com1:CTS
+#SLOT=/dev/sci0:2:1:1:1:999:slotunten:password3
+#SLOT=/dev/sci1:2:1:1:1:998:slotoben:password2
+#SLOT=localhost:4:1:1:1:22222:dummy:dummy:0102030405060708091011121314
+#SLOT=/dev/cardreader1:2:1:1:1:998:slotoben:password2
Index: /ipk/source.sh4/swapemus_gbox800/var/swap/keys/camd3.servers
===================================================================
--- /ipk/source.sh4/swapemus_gbox800/var/swap/keys/camd3.servers	(revision 9261)
+++ /ipk/source.sh4/swapemus_gbox800/var/swap/keys/camd3.servers	(revision 9261)
@@ -0,0 +1,10 @@
+#
+# Sende alle ECMs
+#cs357x://benutzer1:password1@192.168.1.1:32897
+#
+# use emu remote au
+#cs357x://benutzer1:password1:AU_CAID=1801&AU_IDENT=501@192.168.1.1:32897
+#
+# Sende gefiltert nach Services (z.B nur Start und Film)
+#
+#cs357x://benutzer3:password3:SERVICES=/var/keys/pw_start.services&SERVICES=/var/keys/pw_film.services@myhost.mydomain:16663
Index: /ipk/source.sh4/swapemus_gbox800/var/swap/keys/camd3.users
===================================================================
--- /ipk/source.sh4/swapemus_gbox800/var/swap/keys/camd3.users	(revision 9261)
+++ /ipk/source.sh4/swapemus_gbox800/var/swap/keys/camd3.users	(revision 9261)
@@ -0,0 +1,35 @@
+# Alle services erlaubt, IN_CASC erlaubt, OUT_CASC erlaubt
+benutzer1:password2
+
+# REMM
+#benutzer1:password2:REMM=/dev/sci1 (kann auch mit FROM und(oder) SERVICES benutzt werden)
+
+# nur Start
+#benutzer2:password2:SERVICES=/var/keys/pw_start.services
+
+# nur Fim
+#benutzer3:password3:SERVICES=/var/keys/pw_film.services
+
+# nur Start UND Film
+#benutzer3:password3:SERVICES=/var/keys/pw_start.services&SERVICES=/var/keys/pw_film.services
+
+# Cascadingungsabfragen von benutzer5 werden akzeptiert und local bearbeiteit, wenn es in services steht
+#benutzer5:password5:SERVICES=/var/keys/pw_start_in
+
+# Cascading für benutzer6 aktiviert
+#benutzer6:password6:SERVICES=/var/keys/pw_start_out.services
+
+#Cascadingungsabfragen von benutzer7 werden akzeptier, local bearbeiteit und anderen Server weitergeleitet
+#benutzer7:password7:SERVICES=/var/keys/pw_start_all.services
+
+# Nur Anfragen von einer bestimmten IP-Adresse sind erlaubt (kann auch mit REMM und(oder) SERVICES benutzt werden)
+#benutzer8:password8:FROM=sein.hostname.domain
+#benutzer9:password9:FROM=192.168.1.210
+
+# DISABLE=1 -> Sende Disable-Service, wenn nicht in Service-List (kann mit Anderen Parameters kombiniert werden)
+benutzer110:password10:DISABLE=1&SERVICES=/var/keys/pw_start.services
+
+# DISABLE=2 -> Sende Fake-DW, wenn nicht in Service-List (kann mit Anderen Parameters kombiniert werden)
+benutzer110:password10:DISABLE=2&SERVICES=/var/keys/pw_start.services
+
+# PRIORITY=3
