mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
portable ip management
This commit is contained in:
parent
4ca50a851e
commit
574fca6427
2 changed files with 29 additions and 7 deletions
|
@ -69,11 +69,11 @@ if [ -z "$sys_ip_check" ]; then
|
|||
|
||||
# Adding Debian/Ubuntu startup script
|
||||
if [ -e "/etc/debian_version" ]; then
|
||||
sys_ip="# Added by vesta"
|
||||
sys_ip="\n# Added by vesta"
|
||||
sys_ip="$sys_ip\nauto $iface"
|
||||
sys_ip="$sys_ip\niface $iface inet static"
|
||||
sys_ip="$sys_ip\naddress $ip"
|
||||
sys_ip="$sys_ip\netmask $mask"
|
||||
sys_ip="$sys_ip\nnetmask $mask"
|
||||
echo -e $sys_ip >> /etc/network/interfaces
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue