Compare commits

..

1 Commits

Author SHA1 Message Date
Diogo Carvalho 33337c39a2
Merge 77b4189d97 into e7ecf8707d 2024-10-13 07:32:00 +03:00
1 changed files with 6 additions and 6 deletions

View File

@ -2100,9 +2100,8 @@ run_wifi_ap_processes() {
echo echo
echo "Starting hostapd" echo "Starting hostapd"
if COMPLAIN_CMD="$(command -v aa-complain || command -v complain)"; then if which complain > /dev/null 2>&1; then
echo "Setting hostapd to AppArmor complain mode..." 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)
@ -2122,9 +2121,10 @@ start_dnsmasq() {
echo echo
echo "Starting dnsmasq" echo "Starting dnsmasq"
if COMPLAIN_CMD="$(command -v aa-complain || command -v complain)"; then if which complain > /dev/null 2>&1; then
echo "Setting dnsmasq to AppArmor complain mode..." # openSUSE's apparmor does not allow dnsmasq to read files.
"$COMPLAIN_CMD" dnsmasq # remove restriction.
complain dnsmasq
fi fi
# Using '-d'(no daemon) dnsmasq will not turn into 'nobody' # Using '-d'(no daemon) dnsmasq will not turn into 'nobody'