slitaz-base-files rev 343 tip

fix ipinfo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 04 14:28:55 2020 +0000 (2020-10-04)
parents ebdc840a8655
children
files rootfs/usr/bin/ipinfo
line diff
     1.1 --- a/rootfs/usr/bin/ipinfo	Fri Sep 18 15:26:00 2020 +0000
     1.2 +++ b/rootfs/usr/bin/ipinfo	Sun Oct 04 14:28:55 2020 +0000
     1.3 @@ -10,6 +10,6 @@
     1.4  	iface="$INTERFACE"
     1.5  fi
     1.6  
     1.7 -ifconfig ${iface} | awk '/inet addr/{print substr($1,6)}'
     1.8 +ifconfig ${iface} | awk '/inet addr/{print substr($2,6)}'
     1.9  
    1.10  exit 0