Skip to content

Instantly share code, notes, and snippets.

@ZiTAL
Created October 15, 2024 08:29
Show Gist options
  • Save ZiTAL/0b993770e9f8ed946fa052d7ffc054b0 to your computer and use it in GitHub Desktop.
Save ZiTAL/0b993770e9f8ed946fa052d7ffc054b0 to your computer and use it in GitHub Desktop.
Vision Five 2: get firmware version
#!/bin/bash
cat /dev/mtd[012] | strings | grep -E "JH7110" | head -n 2 | tail -n 1 | awk '{match($0, /_v[^\)]+/, arr); print substr(arr[0], 3)}'
@ZiTAL
Copy link
Author

ZiTAL commented Oct 15, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment