slitaz-base-files annotate rootfs/usr/bin/ipinfo @ rev 340

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 26 08:22:10 2019 +0100 (15 months ago)
parents 967cede25fb4
children
rev   line source
pankso@244 1 #!/bin/sh
pankso@244 2 #
pankso@244 3 # ipinfo: Show SliTaz local IP address
pankso@244 4 #
pankso@244 5 . /etc/network.conf
pankso@244 6
pascal@340 7 if [ "$WIFI" = "yes" ]; then
pankso@244 8 iface="$WIFI_INTERFACE"
pankso@244 9 else
pankso@244 10 iface="$INTERFACE"
pankso@244 11 fi
pankso@244 12
pascal@291 13 ifconfig ${iface} | awk '/inet addr/{print substr($1,6)}'
pankso@244 14
pankso@244 15 exit 0