network autoconfigurator
This commit is contained in:
parent
1c3c991780
commit
616644ac32
1 changed files with 9 additions and 0 deletions
9
installation/static_ip.sh
Normal file
9
installation/static_ip.sh
Normal 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
|
Loading…
Reference in a new issue