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
14
Merge Requests
14
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.package
Commits
9eb187b1
Commit
9eb187b1
authored
Jul 20, 2023
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup playbook/ors: get-sdr-info script
parent
5caf3545
Pipeline
#29187
failed with stage
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
playbook/roles/ors/files/get-sdr-info
playbook/roles/ors/files/get-sdr-info
+1
-3
playbook/sha256sum
playbook/sha256sum
+1
-1
No files found.
playbook/roles/ors/files/get-sdr-info
View file @
9eb187b1
...
...
@@ -140,8 +140,6 @@ case "$ORS" in
69
)
TDD
=
"TDD"
;
BAND
=
"B39"
;
VERSION
=
"3.4"
;
ISERIAL
=
"B3"
;;
70
)
TDD
=
"UNKNOWN"
;
BAND
=
"UNKNOWN"
;
VERSION
=
"UNKNOWN"
;
ISERIAL
=
"UNKNOWN"
;;
700
)
TDD
=
"TDD"
;
BAND
=
"B39"
;
VERSION
=
"3.4"
;
ISERIAL
=
"B0"
;;
71
)
TDD
=
"TDD"
;
BAND
=
"B38"
;
VERSION
=
"3.4"
;
ISERIAL
=
"B77"
;;
...
...
@@ -214,7 +212,7 @@ 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
v
3.2"
;
test
-z
"
$IPRODUCT
"
&&
IPRODUCT
=
"TDDUNKNOWN 3.2"
;
test
-z
"
$ISERIAL
"
&&
ISERIAL
=
"UNKNOWN"
;
TDD
=
"
${
IPRODUCT
[@]
:0:3
}
"
IPRODUCT
=
"
${
IPRODUCT
[@]
:3
}
"
...
...
playbook/sha256sum
View file @
9eb187b1
e
4b015775c67f46178e3e569eacbc97319395fe47fe0070b610f5ca0411f70b7
-
e
689febb0898f658a238266630c58dc7c76bd6e74b5cbd28f28173baa7b5ede4
-
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