Compare commits
1 Commits
e0d7401b16
...
0deebf2473
Author | SHA1 | Date |
---|---|---|
|
0deebf2473 |
12
lnxrouter
12
lnxrouter
|
@ -2116,9 +2116,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)
|
||||||
|
@ -2138,9 +2137,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'
|
||||||
|
|
Loading…
Reference in New Issue