File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2087,8 +2087,9 @@ run_wifi_ap_processes() {
2087
2087
echo
2088
2088
echo " Starting hostapd"
2089
2089
2090
- if COMPLAIN_CMD=$( command -v complain || command -v aa-complain) ; then
2091
- $COMPLAIN_CMD hostapd
2090
+ if COMPLAIN_CMD=" $( command -v aa-complain || command -v complain) " ; then
2091
+ echo " Setting hostapd to AppArmor complain mode..."
2092
+ " $COMPLAIN_CMD " hostapd
2092
2093
fi
2093
2094
2094
2095
# hostapd '-P' works only when use '-B' (run in background)
@@ -2108,10 +2109,9 @@ start_dnsmasq() {
2108
2109
echo
2109
2110
echo " Starting dnsmasq"
2110
2111
2111
- if COMPLAIN_CMD=$( command -v complain || command -v aa-complain) ; then
2112
- # openSUSE's apparmor does not allow dnsmasq to read files.
2113
- # remove restriction.
2114
- $COMPLAIN_CMD dnsmasq
2112
+ if COMPLAIN_CMD=" $( command -v aa-complain || command -v complain) " ; then
2113
+ echo " Setting dnsmasq to AppArmor complain mode..."
2114
+ " $COMPLAIN_CMD " dnsmasq
2115
2115
fi
2116
2116
2117
2117
# Using '-d'(no daemon) dnsmasq will not turn into 'nobody'
You can’t perform that action at this time.
0 commit comments