From 35e8df0564de507e405d61a4850804b102af1803 Mon Sep 17 00:00:00 2001 From: tipex360 Date: Mon, 15 May 2023 05:57:49 +0100 Subject: [PATCH] Check for complain as well al aa-complain --- src/scripts/create_ap | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/scripts/create_ap b/src/scripts/create_ap index 0733ee4..14dc932 100755 --- a/src/scripts/create_ap +++ b/src/scripts/create_ap @@ -1879,10 +1879,12 @@ if [[ "$SHARE_METHOD" != "bridge" ]]; then if [[ $NO_DNSMASQ -eq 0 ]]; then iptables -w -I INPUT -p udp -m udp --dport 67 -j ACCEPT || die - if which aa-complain > /dev/null 2>&1; then - # openSUSE's apparmor does not allow dnsmasq to read files. - # remove restriction. - aa-complain dnsmasq + + # apparmor does not allow dnsmasq to read files. + # remove restriction. + + if COMPLAIN_CMD=$(command -v complain || command -v aa-complain); then + COMPLAIN_CMD dnsmasq fi umask 0033