Skip to content

Commit

Permalink
wb-gen-serial: decode imei to fix wb6x sn-generating (#131) (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
vdromanov authored Aug 28, 2023
1 parent f7f4a7e commit e1fa940
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
wb-utils (4.8.2-wb106) stable; urgency=medium

* wb-gen-serial: decode imei to fix wb6x sn-generating

-- Vladimir Romanov <[email protected]> Mon, 28 Aug 2023 12:36:12 +0300

wb-utils (4.8.2-wb105) stable; urgency=medium

* fix FIT image install via wb-run-update with single rootfs from random
Expand Down
3 changes: 3 additions & 0 deletions utils/bin/wb-gen-serial
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ def _get_serial_2():
else:
imei = ""

if isinstance(imei, bytes):
imei = imei.decode("utf-8")

# read WB7 CPU serial from alternative source
if dt_is_compatible(DT_SUNXI):
cpuinfo_serial = str(get_wb7_cpu_serial())
Expand Down

0 comments on commit e1fa940

Please sign in to comment.