hostapd WI FI
-
#!/bin/bash#!tunctl -u pi -t uap0ifconfig uap0 up# /etc/dnsmasq.confpid-file=/var/run/dnsmasq/dnsmasq.pidlog-facility=/var/log/dnsmasq.loguser=dnsmasqgroup=dnsmasqno-resolvno-pollstop-dns-rebindclear-on-reloadbind-interfacesdomain-neededbogus-privinterface=uap0no-dhcp-interface=lo,wlan0listen-address=127.0.0.1,192.168.0.1,192.168.1.1,192.168.4.1dhcp-range=192.168.55.10,192.168.55.100,255.255.255.0,12/etc/network/interfacesauto uap0iface uap0 inet staticaddress 192.168.55.1/24broadcast 192.168.55.255pre-up iptables-restore < /etc/network/iptables.rules# pre-up iw phy phy0 interface add uap0 type __ap || true# up ifup uap0 || true