Check-in [9f801af87e]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

SHA1 Hash:9f801af87e23fadd14cd27ba03a064bf19558b3d
Date: 2013-02-16 01:10:03
User: root
Comment:mavrothal: fix for /usr/sbin/ipinfo

Tags And Properties
Changes

Changes to woof-code/rootfs-skeleton/usr/sbin/ipinfo

@@ -2,10 +2,11 @@
 # AUTHOR: Vovchik
 # PURPOSE: GUI to show IP config info
 # DATE: 14 May 2009
 #120201 BK: internationalized.
 #120323 replace 'xmessage' with 'yaf-splash'.
+#130216 mavrothal: < > mess up gtkdialog.
 
 export TEXTDOMAIN=ipinfo
 export OUTPUT_CHARSET=UTF-8
 
 # --------------
@@ -21,11 +22,11 @@
 	# external ip
 	var0="`wget -O - -q icanhazip.com`"
 	var0="$(gettext 'External IP:') ""$var0"
 	# tab 1 - interfaces
 	var01=`echo $(gettext 'Hostname:') "$HOSTNAME"`
-	var02=`ifconfig`
+	var02="`ifconfig | tr '>' ')' | tr '<' '('`" #130216 mavrothal: < > mess up gtkdialog.
 	# tab 3 - routing
 	var03="`route -n | sed -e 's%Kernel IP routing table%%'`"
 	# tab 2
 	var04="DNS:"
 	var05=`cat /etc/resolv.conf`
@@ -40,11 +41,11 @@
 		var09=`iwgetid -m 2>&1`
 		var10=`iwlist encryption 2>&1 | grep -v "no encryption"`
 		var11=`iwlist rate 2>&1 | grep Current`
 		# concatenate wireless data for display
 		var12="$var06""$nl""$var07""$nl""$var08""$nl""$var09""$nl""$var10""$nl""$var11""$nl"
-		var12=`echo "$var12" | sed '/^$/d' `
+		var12="`echo "$var12" | tr '>' ')' | tr '<' '(' | sed '/^$/d'`" #130216 mavrothal: < > mess up gtkdialog.
 	else
 		var12="<b>$(gettext 'No wireless extensions detected.')</b>"
 	fi
 	# tab 5 - collect connection data
 	var13="`netstat -tan`"