树莓派+archlinuxarm做路由
1 | pacman -S dnsmasq hostapd |
1 | ip link set dev wlan1 up |
1 | /etc/hostapd/hostapd.conf |
1 | /etc/dnsmasq.conf |
1 | systemctl start hostapd |
1 | echo "1" >/proc/sys/net/ipv4/ip_forward |
编辑成一个脚本
1 | #!/bin/sh |
1 | pacman -S dnsmasq hostapd |
1 | ip link set dev wlan1 up |
1 | /etc/hostapd/hostapd.conf |
1 | /etc/dnsmasq.conf |
1 | systemctl start hostapd |
1 | echo "1" >/proc/sys/net/ipv4/ip_forward |
编辑成一个脚本
1 | #!/bin/sh |