Temperature readout fix

And switching from Google to Cloudflare DNS everywhere
This commit is contained in:
ThomasKaiser 2018-05-28 23:27:11 -07:00
parent a3df0ce146
commit 1c9c7d4037
2 changed files with 2 additions and 2 deletions

View File

@ -282,7 +282,7 @@ install_distribution_specific()
renderer: NetworkManager
EOF
# DNS fix
sed -i "s/#DNS=.*/DNS=8.8.8.8/g" $SDCARD/etc/systemd/resolved.conf
sed -i "s/#DNS=.*/DNS=1.1.1.1/g" $SDCARD/etc/systemd/resolved.conf
;;
esac
}

View File

@ -61,7 +61,7 @@ prepare_temp_monitoring() {
if [[ -d "/sys/devices/platform/a20-tp-hwmon" ]]; then
# sun7i legacy
ln -fs /sys/devices/platform/a20-tp-hwmon/temp1_input /etc/armbianmonitor/datasources/soctemp
elif [[ -d /sys/class/hwmon/hwmon0/temp1_input ]]; then
elif [[ -f /sys/class/hwmon/hwmon0/temp1_input ]]; then
# usual convention with modern kernels
ln -fs /sys/class/hwmon/hwmon0/temp1_input /etc/armbianmonitor/datasources/soctemp
else