File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11post_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
You can’t perform that action at this time.
0 commit comments