10 lines
207 B
Bash
Executable file
10 lines
207 B
Bash
Executable file
#!/bin/bash
|
|
|
|
config="auto $1
|
|
iface $1 inet static
|
|
address 192.168.16.1
|
|
netmask 255.255.255.0"
|
|
|
|
echo -e "$config" | sudo tee /etc/network/interfaces.d/network >/dev/null
|
|
|
|
systemctl restart networking
|