This commit is contained in:
Mateusz779 2023-04-25 09:02:31 +02:00
parent 22bcedd3a5
commit 45c497a5d0

View File

@ -86,15 +86,12 @@ if [ -n "$msmtp_conf" ]; then
fi fi
mkdir /tmp/output/vpn/scripts mkdir /tmp/output/vpn/scripts
cat <<EOF> /tmp/output/vpn/scripts/starttap.sh
#!/bin/sh
ifconfig '$TAP' $ip netmask 255.255.255.0 up
EOF
cat <<EOF> /tmp/output/vpn/scripts/arpinggw.sh echo '#!/bin/sh
#!/bin/sh ifconfig $TAP $ip netmask 255.255.255.0 up' > /tmp/output/vpn/scripts/starttap.sh
ip -s -s neigh flush all dev '$TAP'
EOF echo '#!/bin/sh
ip -s -s neigh flush all dev $TAP' > /tmp/output/vpn/scripts/arpinggw.sh
chmod +x /tmp/output/vpn/scripts/starttap.sh chmod +x /tmp/output/vpn/scripts/starttap.sh
chmod +x /tmp/output/vpn/scripts/arpinggw.sh chmod +x /tmp/output/vpn/scripts/arpinggw.sh