network autoconfigurator

This commit is contained in:
Patrick 2024-11-18 20:56:39 +01:00
parent 1c3c991780
commit 616644ac32

View file

@ -0,0 +1,9 @@
#!/bin/bash
config="auto $1
iface $1 inet static
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.0"
echo -e "$config" | sudo tee /etc/network/interfaces >/dev/null