formatting adjustments
This commit is contained in:
parent
d1ce9211de
commit
7f4e199904
|
@ -58,7 +58,6 @@ else
|
|||
dns_domain_config=""
|
||||
fi
|
||||
|
||||
# Create the dnsmasq.conf file with the generated DNS server config
|
||||
cat >/etc/dnsmasq.conf <<EOL
|
||||
interface=$ETH_IFACE
|
||||
domain-needed
|
||||
|
@ -94,7 +93,7 @@ iptables -t nat -A PREROUTING -i $WLAN_IFACE -j DNAT --to-destination $BRIDGED_C
|
|||
iptables -t nat -A POSTROUTING -o $ETH_IFACE -j MASQUERADE
|
||||
echo "Port forwarded everything to the single bridged client"
|
||||
|
||||
echo -e "\nRestarting dnsmasq...\n"
|
||||
echo -en "\nRestarting dnsmasq..."
|
||||
service systemd-resolved stop
|
||||
# systemctl enable --now dnsmasq
|
||||
systemctl restart dnsmasq
|
||||
|
|
|
@ -39,6 +39,7 @@ while true; do
|
|||
elif [ "$STATUS" == "1" ]; then
|
||||
echo -e "\n----> Interface $ETH_IFACE has been plugged in."
|
||||
bash "$DIR/bridge/bridge-lan.sh"
|
||||
echo ""
|
||||
bash "$DIR/bridge/clone-client-mac.sh"
|
||||
echo -e "--> Bridge complete\n"
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue