#endif
/*
* /sbin/ip path, may be overridden
* /bin/ip path, may be overridden
*/
#ifdef ENABLE_IPROUTE
extern const char *iproute_path;
get_ifconfig_route()
{
# linux / iproute2? (-> if configure got a path)
if [ -n "/sbin/ip" ]
if [ -n "/bin/ip" ]
then
echo "-- linux iproute2 --"
/sbin/ip addr show | grep -v valid_lft
/bin/ip addr show | grep -v valid_lft
/sbin/ip route show
/bin/ip route show
/sbin/ip -o -6 route show | grep -v ' cache' | sed -e 's/expires [0-9]*sec//'
/bin/ip -o -6 route show | grep -v ' cache' | sed -e 's/expires [0-9]*sec//'
return
fi