Temperature readout fix
And switching from Google to Cloudflare DNS everywhere
This commit is contained in:
parent
a3df0ce146
commit
1c9c7d4037
@ -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
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user