Mailinglist Archive: opensuse (1540 mails)

< Previous Next >
Re: [opensuse] Script to check interface & restart network service
  • From: David Haller <dnh@xxxxxxxxxxxx>
  • Date: Wed, 17 Feb 2010 03:13:06 +0100
  • Message-id: <20100217021306.GB5808@xxxxxxxxxxxxxxxxxx>
Hello,

On Tue, 16 Feb 2010, David C. Rankin wrote:
ifacestatus=( $(ifconfig) )

export LANG=de_DE
ifacestatus=( $(ifconfig) )

=> Kaboom! for the following.

Yes, it's understandable for you not to think of that ;)

Weirdly enough, I can't get my ifconfig to output the german version,
but I've seen it often enough. So: use

ifacestatus=( $(LC_ALL=C ifconfig) )

to reliably get the english version of the output.

Ah, here's a sample how the german version of ifconfig-output looks
like [from http://www.fibel.org/linux/lfo-0.6.0/node476.html ]

eth0 Protokoll:Ethernet Hardware Adresse 00:E0:18:1B:21:55
inet Adresse:10.0.1.3 Bcast:10.0.1.255 Maske:255.255.255.0
inet6 Adresse: fe80::2e0:18ff:fe1b:2155/10
G-Aültigkeitsbereich:Verbindung-b
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenl-AƤnge:100-b
RX bytes:0 (0.0 b) TX bytes:288 (288.0 b)
Interrupt:9 Basisadresse:0x7c00

Ain't that nice? ;) Now add in what Wong might use (Chinese? Encoded
as what?) Much fun ensues. NOT!

For the rest of the script, much of my other mail seems to apply.

-dnh

--
If I wanted to point and drool, I'd go to a Chippendales show.
-- Leigh Metcalf
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups