mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
armbian-next: initial post-kinetic resolved debacle, for now just WARN don't break; missing resolved package in kinetic?
This commit is contained in:
@@ -26,8 +26,12 @@ install_distribution_specific() {
|
||||
fi
|
||||
|
||||
# DNS fix
|
||||
if [ -n "$NAMESERVER" ]; then
|
||||
sed -i "s/#DNS=.*/DNS=$NAMESERVER/g" "${SDCARD}"/etc/systemd/resolved.conf
|
||||
if [[ -n "$NAMESERVER" ]]; then
|
||||
if [[ -f "${SDCARD}"/etc/systemd/resolved.conf ]]; then
|
||||
sed -i "s/#DNS=.*/DNS=$NAMESERVER/g" "${SDCARD}"/etc/systemd/resolved.conf
|
||||
else
|
||||
display_alert "DNS fix" "/etc/systemd/resolved.conf not found: ${DISTRIBUTION} ${RELEASE}" "wrn"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Journal service adjustements
|
||||
|
||||
Reference in New Issue
Block a user