create_ap

create a nat-ed wifi ap
git clone git://git.2f30.org/create_ap
Log | Files | Refs | README | LICENSE

commit 38ebab212234f47b9569721d2d2a058c9d4ca525
parent 77ef5e992b3c6996d7bc168835dc335a103938cb
Author: oblique <psyberbits@gmail.com>
Date:   Wed,  2 Sep 2015 00:12:39 +0300

openSUSE's apparmor does not allow dnsmasq to read files, remove restriction.

Fix #103

Diffstat:
Mcreate_ap | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/create_ap b/create_ap @@ -1645,6 +1645,13 @@ if [[ "$SHARE_METHOD" != "bridge" ]]; then DNS_PORT=0 fi iptables -I INPUT -p udp -m udp --dport 67 -j ACCEPT || die + + if which complain > /dev/null 2>&1; then + # openSUSE's apparmor does not allow dnsmasq to read files. + # remove restriction. + complain dnsmasq + fi + umask 0033 dnsmasq -C $CONFDIR/dnsmasq.conf -x $CONFDIR/dnsmasq.pid -l $CONFDIR/dnsmasq.leases -p $DNS_PORT || die umask $SCRIPT_UMASK