Skip to content

Instantly share code, notes, and snippets.

View anddoellinger's full-sized avatar

anddoellinger

View GitHub Profile
@anddoellinger
anddoellinger / ip_config.py
Created September 30, 2022 21:37
Setup tool to configurate static IP Address on RaspberryPi
import re
# variables
static_ip = ""
static_netmask = ""
static_gateway = ""
# Network configuration path
config_path = "/etc/dhcpcd.conf"
interfaces_path = "/etc/network/interfaces"