|
Last change
on this file since 17754 was 17754, checked in by obi, 14 years ago |
|
[ipk] gbox 804 enable set auto key
|
-
Property svn:executable
set to
*
|
|
File size:
634 bytes
|
| Line | |
|---|
| 1 | echo start
|
|---|
| 2 | rm /tmp/gbox.read
|
|---|
| 3 | (sleep 5;touch /tmp/gbox.kill)&
|
|---|
| 4 | /var/emu/gbox_804 > /tmp/gbox.read
|
|---|
| 5 |
|
|---|
| 6 | #cat /tmp/gbox.read
|
|---|
| 7 | ident=`cat /tmp/gbox.read | grep "CAM IDent" | cut -d ":" -f3`
|
|---|
| 8 | echo ident $ident
|
|---|
| 9 | echo end
|
|---|
| 10 |
|
|---|
| 11 | count=0
|
|---|
| 12 | rsa=""
|
|---|
| 13 |
|
|---|
| 14 | echo $ident | sed 's/^//'
|
|---|
| 15 | #| sed -e 's/.\{7\}$//'
|
|---|
| 16 | v1=`echo $ident | cut -c1`
|
|---|
| 17 | v2=`echo $ident | cut -c2`
|
|---|
| 18 | v3=`echo $ident | cut -c3`
|
|---|
| 19 | v4=`echo $ident | cut -c4`
|
|---|
| 20 | v5=`echo $ident | cut -c5`
|
|---|
| 21 | v6=`echo $ident | cut -c6`
|
|---|
| 22 | v7=`echo $ident | cut -c7`
|
|---|
| 23 | v8=`echo $ident | cut -c8`
|
|---|
| 24 |
|
|---|
| 25 | rsa="$v1$v2 $v3$v4 $v5$v6 $v7$v8"
|
|---|
| 26 | echo rsa $rsa
|
|---|
| 27 |
|
|---|
| 28 | sed "s/B: {.*/B: { $rsa { A7 64 2F 57 BC 96 D3 7C }}/" -i /var/keys/nagra
|
|---|
| 29 |
|
|---|
| 30 | /var/emu/gbox_804 &
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.