Skip to content

Commit 67c4318

Browse files
committed
fixed interface issue
1 parent e98581d commit 67c4318

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/v_upd_sys_ip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ for ip in $ip_list; do
6565
if [ -z "$check_ip" ]; then
6666

6767
# Parsing additional params
68-
iface=$(/sbin/ifconfig|grep -B1 -w "$ip"|head -n 1|cut -f 1 -d ' '|\
69-
cut -f 1 -d :)
68+
iface=$(/sbin/ifconfig|grep -B1 -w "$ip"|head -n 1|cut -f 1 -d ' ')
69+
interface=$(echo "$iface" | cut -f 1 -d :)
7070
mask=$(/sbin/ifconfig |grep -w "$ip"|awk -F "Mask:" '{print $2}')
7171

7272
# Adding vesta ip

0 commit comments

Comments
 (0)