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 &