autocore: strip white space
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
268a5e1191
commit
d2364ce1fa
@ -5,7 +5,7 @@ if [ -e "${mt76_path}" ]; then
|
||||
mt76_temp=" $(cat "${mt76_path}" | awk -F ': ' '{print $2}')°C"
|
||||
fi
|
||||
|
||||
wifi_temp="$(awk '{printf("%.1f°C ", $0 / 1000)}' /sys/class/ieee80211/phy*/device/hwmon/hwmon*/temp1_input)"
|
||||
wifi_temp="$(awk '{printf("%.1f°C ", $0 / 1000)}' /sys/class/ieee80211/phy*/device/hwmon/hwmon*/temp1_input | awk '$1=$1')"
|
||||
|
||||
if grep -q "ipq40xx" "/etc/openwrt_release"; then
|
||||
echo -n "WiFi:${mt76_temp} ${wifi_temp}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user