Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arnaud Véron
slapos.package
Commits
fe4d8a55
Commit
fe4d8a55
authored
Sep 25, 2023
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook/ors: check hardware first in get-sdr-info
parent
7b46d0ee
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
210 additions
and
211 deletions
+210
-211
playbook/roles/ors/files/get-sdr-info
playbook/roles/ors/files/get-sdr-info
+209
-210
playbook/sha256sum
playbook/sha256sum
+1
-1
No files found.
playbook/roles/ors/files/get-sdr-info
View file @
fe4d8a55
#!/bin/bash
ORS
=
"
$(
hostname
|
sed
's/ors\(.*\)/\1/g'
)
"
IPRODUCT
=
"
$(
lsusb
-d
0403:6014
-v
2> /dev/null |sed
-n
's/^ iProduct.*ORS \(.*\)$/\1/gp'
)
"
ISERIAL
=
"
$(
lsusb
-d
0403:6014
-v
2> /dev/null |sed
-n
's/^ iSerial *[0-9]* \(.*\)$/\1/gp'
)
"
case
"
$ORS
"
in
if
[
-z
"
$IPRODUCT
"
]
;
then
ORS
=
"
$(
hostname
|
sed
's/ors\(.*\)/\1/g'
)
"
case
"
$ORS
"
in
0
)
TDD
=
"TDD"
;
BAND
=
"B39"
;
VERSION
=
"3.2"
;
ISERIAL
=
"A0"
;;
1
)
...
...
@@ -205,12 +208,8 @@ case "$ORS" in
TDD
=
"TDD"
;
BAND
=
"B39"
;
VERSION
=
"4.4"
;
ISERIAL
=
"E7"
;;
*
)
TDD
=
"UNKNOWN"
;
BAND
=
"UNKNOWN"
;
VERSION
=
"UNKNOWN"
;
ISERIAL
=
"UNKNOWN"
;;
esac
if
[[
"
$TDD
"
==
"UNKNOWN"
]]
;
then
IPRODUCT
=
"
$(
lsusb
-d
0403:6014
-v
2> /dev/null |sed
-n
's/^ iProduct.*ORS \(.*\)$/\1/gp'
)
"
ISERIAL
=
"
$(
lsusb
-d
0403:6014
-v
2> /dev/null |sed
-n
's/^ iSerial *[0-9]* \(.*\)$/\1/gp'
)
"
test
-z
"
$IPRODUCT
"
&&
IPRODUCT
=
"TDDUNKNOWN 3.2"
;
esac
else
test
-z
"
$ISERIAL
"
&&
ISERIAL
=
"UNKNOWN"
;
TDD
=
"
${
IPRODUCT
[@]
:0:3
}
"
IPRODUCT
=
"
${
IPRODUCT
[@]
:3
}
"
...
...
playbook/sha256sum
View file @
fe4d8a55
ee08d5e3709ea1f504946fa5665cc01586503cd126aebdf171e160879b37be79
-
a4d5797927f9921b315c6dfcb04bda8bd04ff9eabe892822a46b8b6c75c8551e
-
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment