Change in osmo-ccid-firmware[master]: add script to generate a inititial osmo-bankd slotconfig sorted by us...

roh gerrit-no-reply at lists.osmocom.org
Tue Jul 27 19:20:10 UTC 2021


roh has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/25062 )


Change subject: add script to generate a inititial osmo-bankd slotconfig sorted by usb path
......................................................................

add script to generate a inititial osmo-bankd slotconfig sorted by usb path

Change-Id: Ibb5e7db78c8a2129d2093b0dd5ecaa7c13ab9ee3
---
A contrib/gen_bankd_pcsc_slots-csv.sh
1 file changed, 6 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/62/25062/1

diff --git a/contrib/gen_bankd_pcsc_slots-csv.sh b/contrib/gen_bankd_pcsc_slots-csv.sh
new file mode 100755
index 0000000..3a27e84
--- /dev/null
+++ b/contrib/gen_bankd_pcsc_slots-csv.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+# this script is to scan for octsim boards, sort them by usb path and generate a bankd_pcsc_slots.csv on stdout
+
+dfu-util -l |grep "Found Runtime: \[1d50:6141\]" |cut -d ' ' -f 8,13|tr -d ','|cut -d \" -f 2,4|tr \" ' '|sort |cut -d ' ' -f 2 | awk 'BEGIN {count=0}{for (slot=0; slot<8; slot++) {print count, $0, 0slot; count++}}'|awk '{print "\"1\",\""$1"\",\"sysmocom sysmoOCTSIM \[CCID\] \("$2"\) [A-F0-9]{2} "$3"\""}'
+

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/25062
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: Ibb5e7db78c8a2129d2093b0dd5ecaa7c13ab9ee3
Gerrit-Change-Number: 25062
Gerrit-PatchSet: 1
Gerrit-Owner: roh <jsteiger at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210727/7b15b949/attachment.htm>


More information about the gerrit-log mailing list