diff --git a/setup.sh b/setup.sh index e941f6f..9a85c3b 100644 --- a/setup.sh +++ b/setup.sh @@ -122,8 +122,13 @@ echo "📡 Installing and configuring WiFi hotspot and captive portal..." if [ "$PKG_MANAGER" == "apt" ]; then # Install dependencies for hotspot and for building nodogsplash - sudo apt install -y hostapd dnsmasq git libmicrohttpd-dev libjson-c-dev + sudo apt install -y hostapd dnsmasq git libmicrohttpd-dev libjson-c-dev iptables + # Force iptables-legacy for nodogsplash compatibility + echo "Setting iptables-legacy mode for nodogsplash..." + sudo update-alternatives --set iptables /usr/sbin/iptables-legacy + sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy + echo "Building and installing nodogsplash from source..." # Create a temporary directory for the build BUILD_DIR=$(mktemp -d)