Skip to content

Commit 87d988a

Browse files
committed
Disable dnsmasq in network manager
1 parent 4660952 commit 87d988a

1 file changed

Lines changed: 8 additions & 14 deletions

File tree

pkgbuild/sysctl-network.install

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
post_install() {
22

3-
# enable dnsmasq in NetworkManager, dont need start dnsmasq directly, NetworkManager do this
4-
if [[ "$(systemctl is-enabled systemd-resolved.service)" = "disabled" ]] && [[ -e /usr/bin/dnsmasq ]] && [[ ! -e /etc/NetworkManager/conf.d/dns.conf ]]; then
5-
echo '[main]
6-
dns=dnsmasq' > /etc/NetworkManager/conf.d/dns.conf
7-
8-
# disable old nmb, only needed to found very old shares from windows 7 and more older
9-
if [[ "$(systemctl is-enabled nmb)" = "enabled" ]]; then
10-
systemctl disable nmb
11-
fi
12-
13-
# enable avahi-daemon to another linux detect samba in network and some another network services
14-
if [[ "$(systemctl is-enabled avahi-daemon.service)" = "disabled" ]]; then
15-
systemctl enable avahi-daemon.service
16-
fi
3+
# Temporary fix to disable dnsmasq usage in network manager, remove this in few days
4+
if [[ ! -e /etc/NetworkManager/conf.d/dns.conf ]]; then
5+
rm -f /etc/NetworkManager/conf.d/dns.conf
6+
fi
177

8+
# disable old nmb, only needed to found very old shares from windows 7 and more older
9+
if [[ "$(systemctl is-enabled nmb)" = "enabled" ]] && [[ "$(systemctl is-enabled avahi-daemon.service)" = "disabled" ]]; then
10+
systemctl disable nmb
11+
systemctl enable avahi-daemon.service
1812
fi
1913

2014

0 commit comments

Comments
 (0)