[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug 1158] update-hostname-from-ip doesn't return anything useful.



http://bugs.skolelinux.no/show_bug.cgi?id=1158





------- Additional Comments From pere@hungry.com  2007-05-17 23:53 -------
I just commited this patch to solve the problem.

Index: bin/update-hostname-from-ip
===================================================================
--- bin/update-hostname-from-ip (revision 33264)
+++ bin/update-hostname-from-ip (working copy)
@@ -18,7 +18,7 @@
 fi

 # Extract current IP
-IP=`ifconfig $INTERFACE 2>&1 |grep 'inet addr:'|tr a-zA-Z: " "|awk '{print 
$1}'`
+IP=`LC_ALL=C ifconfig $INTERFACE 2>&1 |grep 'inet addr:'|tr a-zA-Z: " "|awk 
'{print $1}'`

 if [ "$IP" ] ; then





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



Reply to: