Index: /ipk/source.sh4/emus_gbox_804/var/bin/startgbox_804
===================================================================
--- /ipk/source.sh4/emus_gbox_804/var/bin/startgbox_804	(revision 17754)
+++ /ipk/source.sh4/emus_gbox_804/var/bin/startgbox_804	(revision 17754)
@@ -0,0 +1,30 @@
+echo start
+rm /tmp/gbox.read
+(sleep 5;touch /tmp/gbox.kill)&
+/var/emu/gbox_804 > /tmp/gbox.read
+
+#cat /tmp/gbox.read
+ident=`cat /tmp/gbox.read | grep "CAM IDent" | cut -d ":" -f3`
+echo ident $ident
+echo end
+
+count=0
+rsa=""
+
+echo $ident | sed 's/^//'
+#| sed -e 's/.\{7\}$//'
+v1=`echo $ident | cut -c1`
+v2=`echo $ident | cut -c2`
+v3=`echo $ident | cut -c3`
+v4=`echo $ident | cut -c4`
+v5=`echo $ident | cut -c5`
+v6=`echo $ident | cut -c6`
+v7=`echo $ident | cut -c7`
+v8=`echo $ident | cut -c8`
+
+rsa="$v1$v2 $v3$v4 $v5$v6 $v7$v8"
+echo rsa $rsa
+
+sed "s/B: {.*/B: { $rsa { A7 64 2F 57 BC 96 D3 7C }}/" -i /var/keys/nagra
+
+/var/emu/gbox_804 &
Index: /ipk/source.sh4/emus_gbox_804/var/etc/gbox_804.emu
===================================================================
--- /ipk/source.sh4/emus_gbox_804/var/etc/gbox_804.emu	(revision 17753)
+++ /ipk/source.sh4/emus_gbox_804/var/etc/gbox_804.emu	(revision 17754)
@@ -1,4 +1,4 @@
 emuname  =Gbox Version 804
 binname  =gbox_804
-startcam =/var/emu/gbox_804 &
+startcam =/var/emu/startgbox_804
 stopcam  = touch /tmp/gbox.kill
Index: /ipk/source.sh4/swapemus_gbox_804/CONTROL/control
===================================================================
--- /ipk/source.sh4/swapemus_gbox_804/CONTROL/control	(revision 17753)
+++ /ipk/source.sh4/swapemus_gbox_804/CONTROL/control	(revision 17754)
@@ -1,5 +1,5 @@
 Package: enigma2-plugin-swapemus-gbox.804
 Version: 1.0
-Description: gbox 804 and Configs! SWAPSTICK IS NEEDED!
+Description: gbox 804 with autoident for 1 card hd+ or skyde and Configs! SWAPSTICK IS NEEDED!
 Section: swapemus
 Priority: optional
Index: /ipk/source.sh4/swapemus_gbox_804/var/swap/bin/startgbox_804_swap
===================================================================
--- /ipk/source.sh4/swapemus_gbox_804/var/swap/bin/startgbox_804_swap	(revision 17754)
+++ /ipk/source.sh4/swapemus_gbox_804/var/swap/bin/startgbox_804_swap	(revision 17754)
@@ -0,0 +1,31 @@
+echo start
+rm /tmp/gbox.read
+(sleep 5;touch /tmp/gbox.kill)&
+cd /var/swap/bin
+/var/emu/gbox_804_swap > /tmp/gbox.read
+
+#cat /tmp/gbox.read
+ident=`cat /tmp/gbox.read | grep "CAM IDent" | cut -d ":" -f3`
+echo ident $ident
+echo end
+
+count=0
+rsa=""
+
+echo $ident | sed 's/^//'
+#| sed -e 's/.\{7\}$//'
+v1=`echo $ident | cut -c1`
+v2=`echo $ident | cut -c2`
+v3=`echo $ident | cut -c3`
+v4=`echo $ident | cut -c4`
+v5=`echo $ident | cut -c5`
+v6=`echo $ident | cut -c6`
+v7=`echo $ident | cut -c7`
+v8=`echo $ident | cut -c8`
+
+rsa="$v1$v2 $v3$v4 $v5$v6 $v7$v8"
+echo rsa $rsa
+
+sed "s/B: {.*/B: { $rsa { A7 64 2F 57 BC 96 D3 7C }}/" -i /var/keys/nagra
+
+/var/emu/gbox_804_swap &
Index: /ipk/source.sh4/swapemus_gbox_804/var/swap/etc/gbox_804_swap.emu
===================================================================
--- /ipk/source.sh4/swapemus_gbox_804/var/swap/etc/gbox_804_swap.emu	(revision 17753)
+++ /ipk/source.sh4/swapemus_gbox_804/var/swap/etc/gbox_804_swap.emu	(revision 17754)
@@ -1,4 +1,4 @@
 emuname  =Gbox Version 804 swap
 binname  =gbox_804_swap
-startcam =cd /var/swap/bin; ./gbox_804_swap &
+startcam =/var/swap/bin/startgbox_804_swap
 stopcam  = touch /tmp/gbox.kill
