Skip to content

Commit

Permalink
allow chaning serial number
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaboud committed Dec 30, 2024
1 parent 9b70c61 commit 4cbf45f
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## Serial45d 3.0.4-1
## Serial45d 3.0.5-1

* Adds support for HL4/HL8 and 45Professional line
* Allow changing serial number
6 changes: 3 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"__version": "45D-R1",
"name": "serial45d",
"title": "Serial45d",
"prerelease": false,
"version": "3.0.4",
"prerelease": true,
"version": "3.0.5",
"buildVersion": "1",
"author": "Mark Hooper <[email protected]>",
"url": "https://github.com/45Drives/serial45d",
Expand Down Expand Up @@ -52,7 +52,7 @@
],
"changelog": {
"urgency": "medium",
"version": "3.0.4",
"version": "3.0.5",
"buildVersion": "1",
"ignore": [],
"date": null,
Expand Down
2 changes: 2 additions & 0 deletions packaging/el7/main.spec
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ fi
%{_bindir}/*

%changelog
* Mon Dec 30 2024 Joshua Boudreau <[email protected]> 3.0.5-1
- Allow changing serial number
* Wed Dec 04 2024 Jordan Keough <[email protected]> 3.0.4-1
- Adds support for HL4/HL8 and 45Professional line
* Wed Oct 16 2024 Jordan Keough <[email protected]> 3.0.3-1
Expand Down
2 changes: 2 additions & 0 deletions packaging/el8/main.spec
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ fi
%{_bindir}/*

%changelog
* Mon Dec 30 2024 Joshua Boudreau <[email protected]> 3.0.5-1
- Allow changing serial number
* Wed Dec 04 2024 Jordan Keough <[email protected]> 3.0.4-1
- Adds support for HL4/HL8 and 45Professional line
* Wed Oct 16 2024 Jordan Keough <[email protected]> 3.0.3-1
Expand Down
6 changes: 6 additions & 0 deletions packaging/focal/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
serial45d (3.0.5-1focal) focal; urgency=medium

* Allow changing serial number

-- Joshua Boudreau <[email protected]> Mon, 30 Dec 2024 13:57:45 -0400

serial45d (3.0.4-1focal) focal; urgency=medium

* Adds support for HL4/HL8 and 45Professional line
Expand Down
5 changes: 3 additions & 2 deletions src/fakeroot/opt/45drives/serial45d/serial45d
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,8 @@ def getSerial():
print("| Step {sn}: Enter Product Serial |".format(sn=step_number))
print("+----------------------------------------------------------------+")
print("45Drives Serial Number '{sn}' detected automatically.".format(sn=selection))
done = True
resp = input("Change serial number? (y/N): ")
done = not re.match(r'^[Yy][Ee]?[Ss]?$', resp.strip())

while not done:
print("\n")
Expand Down Expand Up @@ -1392,4 +1393,4 @@ def main():
g_ps_serial.sendDetails(fru_fields,auto_detect_fields,fru_write_output)

if __name__ == "__main__":
main()
main()

0 comments on commit 4cbf45f

Please sign in to comment.