mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-23 20:59:54 +07:00
functions: fix hwid for multiple nic
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
3ccb91be9f
commit
a68b5d446e
@ -565,6 +565,6 @@ function systemCheck () {
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
# Generate HardwareID
|
# Generate HardwareID
|
||||||
function genHWID () {
|
function genHWID () {
|
||||||
HWID="$(echo $(dmidecode -t 4 | grep ID | sed 's/.*ID://;s/ //g' | head -1) $(ifconfig | grep eth0 | awk '{print $NF}' | sed 's/://g') | sha256sum | awk '{print $1}' | cut -c1-16)" 2>/dev/null
|
HWID="$(echo $(dmidecode -t 4 | grep ID | sed 's/.*ID://;s/ //g' | head -1) $(ifconfig | grep eth | awk '{print $NF}' | sed 's/://g' | sort | head -1) | sha256sum | awk '{print $1}' | cut -c1-16)" 2>/dev/null
|
||||||
echo "${HWID}"
|
echo "${HWID}"
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user