#!/bin/sh
if test -z "$*" ; then
	ip addr
	echo >&2
fi
if test "`id -u`" -eq 0 ; then
	SUDO=""
else
	SUDO="sudo "
fi
cat >&2 <<EOF
ifconfig is deprecated and should not be used. Please migrate to iproute2:
ip addr
If you still depend on the deprecated tool, install net-tools-deprecated.
${SUDO}zypper install net-tools-deprecated
EOF
exit 1
