Skip to content

Instantly share code, notes, and snippets.

@wannadrunk
Created November 24, 2021 07:14
Show Gist options
  • Save wannadrunk/38f760165e9861ffba6cce045d8559aa to your computer and use it in GitHub Desktop.
Save wannadrunk/38f760165e9861ffba6cce045d8559aa to your computer and use it in GitHub Desktop.
refer to a few instruction to setup RPi as the WiFi AP, here is how to remove it.

Remove the packages

sudo apt purge hostapd dnsmasq

Remove all settings

if these setting files are existed, here is how to roll back

/etc/dhcpcd.conf

remove denyinterfaces xxxx

/etc/network/interfaces

remove all lines under iface xxxx inet static, sample

allow-hotplug wlan0
iface wlan0 inet static
    address 192.168.5.1
    netmask 255.255.255.0
    network 192.168.5.0
    broadcast 192.168.5.255

/etc/hostapd/hostapd.conf

delete this file

/etc/default/hostapd

comment out this line DAEMON_CONF="/etc/hostapd/hostapd.conf"

/etc/dnsmasq.conf

delete this file

Reboot your RPi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment