mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
fixed interface issue
This commit is contained in:
parent
e98581dc9e
commit
67c43189af
1 changed files with 2 additions and 2 deletions
|
@ -65,8 +65,8 @@ for ip in $ip_list; do
|
|||
if [ -z "$check_ip" ]; then
|
||||
|
||||
# Parsing additional params
|
||||
iface=$(/sbin/ifconfig|grep -B1 -w "$ip"|head -n 1|cut -f 1 -d ' '|\
|
||||
cut -f 1 -d :)
|
||||
iface=$(/sbin/ifconfig|grep -B1 -w "$ip"|head -n 1|cut -f 1 -d ' ')
|
||||
interface=$(echo "$iface" | cut -f 1 -d :)
|
||||
mask=$(/sbin/ifconfig |grep -w "$ip"|awk -F "Mask:" '{print $2}')
|
||||
|
||||
# Adding vesta ip
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue