harryallerston / RPI-Wireless-Hotspot

Configure your Raspberry Pi to act as a WPA encrypted WiFi hotspot, sharing the attatched ethernet connection. Allows the selection from a range of common DNS providers, including unblock-us for netflix. Chromecast support with this feature is also configured.
262 stars 100 forks source link

How do I undo the changes RPI-Wireless-Hotspot made? #19

Open echaritos opened 7 years ago

echaritos commented 7 years ago

Is there an script I can run to restore the original config files and setting?

anthonyzhub commented 4 years ago

Hi,

If you had pre-existing configurations and would like to go back to them, all pre-existing files will end with .old. In other words, if you go to the following directories, that are listed below, and find two files with similar names but different suffixes, delete the file that doesn't have .old and rename the other file without ".old"

Example

In /etc/, there are three files that should have .old extension: 'udhcpd.conf, sysctl.conf, iptables.ipv4.nat. Please keep this in mind, there isudhcpd.confandudhcpd.conf.old. In this kind of situation, **ONLY** deleteudhcpd.confand renameudhcpd.conf.oldtoudhcpd.conf. If you accidentally deleteudhcpd.conf.old`, the file cannot be recovered! By repeating this step in every directory, you are "technically" undoing the changes that this repository made on your Raspberry Pi. As far as I know, no other directories or files were affected.

To delete: sudo rm <file name> To rename: `sudo mv

Directories Affected:

  1. /etc/
  2. /etc/default/
  3. /etc/network/
  4. /etc/hostapd/

Best of luck!