Skip to content

Instantly share code, notes, and snippets.

@Sydney-o9
Last active July 26, 2017 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sydney-o9/0a712ee35fe8ea80b0eb6b112f857345 to your computer and use it in GitHub Desktop.
Save Sydney-o9/0a712ee35fe8ea80b0eb6b112f857345 to your computer and use it in GitHub Desktop.
# wpa_supplicant
/sbin/wpa_supplicant -s -B -P /run/wpa_supplicant.wlan0.pid -i wlan0 -D nl80211,wext -c /etc/wpa_supplicant/wpa_supplicant.conf
#
# dhclient
#
# Configure one or more network interfaces using the Dynamic Host Configuration Protocol,
# BOOTP Protocol, or if these protocols fail, by statically assigning an address.
#
# -lf lease-file Path to the lease database file.
# -v Enable verbose log messages
# -pf pid-file Path to the process ID file.
dhclient -v -pf /run/dhclient.wlan0.pid -lf /var/lib/dhcp/dhclient.wlan0.leases wlan0
/usr/sbin/hostapd -B -P /run/hostapd.pid /etc/hostapd/hostapd.conf
/usr/sbin/dnsmasq
-x /run/dnsmasq/dnsmasq.pid
-u dnsmasq
-r /run/dnsmasq/resolv.conf
-7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new
--local-service
--trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5
dnsmasq -C /etc/dnsmasq.conf -x /var/run/dnsmasq.pid -u dnsmasq -r /run/dnsmasq/resolv.conf --local-service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment