mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
orangepione: use serial number reported by /proc/cpuinfo
This commit is contained in:
parent
8d3fc2ad82
commit
6ceceda99a
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
sn=$(cat /sys/class/net/eth0/address 2>/dev/null | tr -d ':')
|
||||
sn=$(cat /proc/cpuinfo | grep Serial | tr -d ' ' | cut -d ':' -f 2)
|
||||
echo ${sn: -8}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user