Fix a bug with complian command

added support for aa-complian.
This commit is contained in:
ByteSnipers GmbH 2024-12-18 12:20:41 +01:00 committed by Garry W
parent e7ecf8707d
commit 7b374d1ee1
1 changed files with 4 additions and 4 deletions

View File

@ -2087,8 +2087,8 @@ run_wifi_ap_processes() {
echo echo
echo "Starting hostapd" echo "Starting hostapd"
if which complain > /dev/null 2>&1; then if COMPLAIN_CMD=$(command -v complain || command -v aa-complain); then
complain hostapd $COMPLAIN_CMD hostapd
fi fi
# hostapd '-P' works only when use '-B' (run in background) # hostapd '-P' works only when use '-B' (run in background)
@ -2108,10 +2108,10 @@ start_dnsmasq() {
echo echo
echo "Starting dnsmasq" echo "Starting dnsmasq"
if which complain > /dev/null 2>&1; then if COMPLAIN_CMD=$(command -v complain || command -v aa-complain); then
# openSUSE's apparmor does not allow dnsmasq to read files. # openSUSE's apparmor does not allow dnsmasq to read files.
# remove restriction. # remove restriction.
complain dnsmasq $COMPLAIN_CMD dnsmasq
fi fi
# Using '-d'(no daemon) dnsmasq will not turn into 'nobody' # Using '-d'(no daemon) dnsmasq will not turn into 'nobody'