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

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