Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 837 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 837 Bytes

PiStaticIP

Python script that sets a static/reserved IP for Raspberry Pi
This was my first code repository on Github

To install:

wget -qO- https://raw.githubusercontent.com/slashtechno/PiStaticIP/main/install | bash

To run

staticIP

One time run

wget -qO- https://raw.githubusercontent.com/slashtechno/PiStaticIP/main/staticIP | python3

To Update (I recommend doing this frequently)

wget -qO- https://raw.githubusercontent.com/slashtechno/PiStaticIP/main/update | bash

To Uninstall

wget -qO- https://raw.githubusercontent.com/slashtechno/PiStaticIP/main/uninstall | bash

How this works

  1. Asks user if they are using WiFi or Ethernet

  2. Executes a command that shows current IP info.

  3. Asks user for what the command output was

  4. Adds static IP info to /etc/dhcpcd.conf