mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Persist IP forwarding + iptables, update raspapd
This commit is contained in:
		@@ -3,7 +3,7 @@
 | 
			
		||||
# up network services in a specific order and timing to avoid race conditions.
 | 
			
		||||
 | 
			
		||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 | 
			
		||||
NAME=raspap
 | 
			
		||||
NAME=raspapd
 | 
			
		||||
DESC="Service control for RaspAP"
 | 
			
		||||
CONFIGFILE="/etc/raspap/hostapd.ini"
 | 
			
		||||
DAEMONPATH="/lib/systemd/system/raspap.service"
 | 
			
		||||
@@ -36,7 +36,6 @@ set -- "${positional[@]}"
 | 
			
		||||
 | 
			
		||||
echo "Stopping network services..."
 | 
			
		||||
systemctl stop openvpn-client@client
 | 
			
		||||
systemctl stop systemd-networkd
 | 
			
		||||
systemctl stop hostapd.service
 | 
			
		||||
systemctl stop dnsmasq.service
 | 
			
		||||
systemctl stop dhcpcd.service
 | 
			
		||||
@@ -65,15 +64,8 @@ if [ -r "$CONFIGFILE" ]; then
 | 
			
		||||
 | 
			
		||||
            echo "Removing uap0 interface..."
 | 
			
		||||
            iw dev uap0 del
 | 
			
		||||
 | 
			
		||||
            echo "Enabling systemd-networkd"
 | 
			
		||||
            systemctl start systemd-networkd
 | 
			
		||||
            systemctl enable systemd-networkd
 | 
			
		||||
        fi
 | 
			
		||||
    else
 | 
			
		||||
        echo "Disabling systemd-networkd"
 | 
			
		||||
        systemctl disable systemd-networkd
 | 
			
		||||
 | 
			
		||||
        echo "Removing br0 interface..."
 | 
			
		||||
        ip link set down br0
 | 
			
		||||
        ip link del dev br0
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user