Pārlūkot izejas kodu

2020.03.24 / Folus Wen

Actions:
1. EVSE/rootfs/usr/bin/check_tmate.sh id get from /etc/hostname

Files:
1. As follow commit history

Image version: D0.00.XX.XXXX.XX
Image checksum: XXXXXXXX

Hardware PWB P/N : XXXXXXX
Hardware Version : XXXXXXX
FolusWen 5 gadi atpakaļ
vecāks
revīzija
4ee2b5bf88
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      EVSE/rootfs/usr/bin/check_tmate.sh

+ 1 - 1
EVSE/rootfs/usr/bin/check_tmate.sh

@@ -15,7 +15,7 @@ if [ $ppid > 0 ]; then
         fi
 else
 	addr=`/usr/bin/run_tmate.sh`
-        id=CSU3_$(cat /sys/class/net/eth0/address)
+        id=CSU3_$(cat /etc/hostname)
         `/usr/bin/timeout -t 20 /usr/bin/wget --spider evsocket.phihong.com.tw:8998/tmate_update.php?chargerID=$id\&tmateAddr=${addr:4}`
 
         if [ $? -eq 0 ] && [ ${#addr} -ge 10 ]; then