2013-04-18 15:25:33 +02:00
|
|
|
diff -uNr ifolder3-enterprise-3.9.1.7638.orig/src/core/ifdata ifolder3-enterprise-3.9.1.7638/src/core/ifdata
|
|
|
|
--- ifolder3-enterprise-3.9.1.7638.orig/src/core/ifdata 2013-04-18 05:15:38.018388777 +0200
|
|
|
|
+++ ifolder3-enterprise-3.9.1.7638/src/core/ifdata 2013-04-18 05:18:12.984451434 +0200
|
|
|
|
@@ -4,6 +4,10 @@
|
2011-06-08 17:26:24 +02:00
|
|
|
then
|
|
|
|
/sbin/ifconfig | grep '\<inet\>' | cut -f2 -d' ' | cut -f1 -d' '
|
|
|
|
else
|
2013-04-18 15:25:33 +02:00
|
|
|
- /sbin/ifconfig | grep 'inet addr' | cut -f2 -d':' | cut -f1 -d' '
|
|
|
|
+ if [ -f /sbin/ip ] then
|
|
|
|
+ /sbin/ip addr | awk '/inet / {sub(/\/.*/, "", $2); print $2}'
|
|
|
|
+ else
|
|
|
|
+ /sbin/ifconfig | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'
|
|
|
|
+ fi
|
|
|
|
fi
|
|
|
|
|