From 616644ac327990b6df84d09601f330c11036e6e3 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 18 Nov 2024 20:56:39 +0100 Subject: [PATCH] network autoconfigurator --- installation/static_ip.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 installation/static_ip.sh diff --git a/installation/static_ip.sh b/installation/static_ip.sh new file mode 100644 index 0000000..0e9f2a0 --- /dev/null +++ b/installation/static_ip.sh @@ -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