preparation-scripts/installation/static_ip.sh

10 lines
200 B
Bash
Raw Normal View History

2024-11-18 20:56:39 +01:00
#!/bin/bash
config="auto $1
iface $1 inet static
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.0"
2024-11-18 20:58:55 +01:00
echo -e "$config" | sudo tee /etc/network/interfaces.d/network >/dev/null