Source

bin / home_net

#!/bin/sh

cat > /etc/resolv.conf.head << EOF
options single-request
nameserver 4.2.2.1
nameserver 8.8.8.8
nameserver 8.8.4.4
EOF

wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
dhcpcd wlan0

rm /etc/resolv.conf.head