mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
bananapi: use cpuinfo serial number
This commit is contained in:
parent
4beac8e8ce
commit
36f441a690
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/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}
|
echo ${sn: -8}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user