Re: [OpenWrt-Devel] [PATCH] Tiny fix for the comgt 3G button hotplug script

2011-06-21 Thread Philip Prindeville
On 6/21/11 1:08 AM, Linus Nielsen Feltzing wrote: > On 06/19/2011 10:38 PM, Philip Prindeville wrote: >> I never like the idea of throwing stderr away blindly. If there's a >> particular message that you know you can safely ignore, I would grep >> it out. There's a trick for grepping on stderr and

Re: [OpenWrt-Devel] [PATCH] Tiny fix for the comgt 3G button hotplug script

2011-06-21 Thread Linus Nielsen Feltzing
On 06/19/2011 10:38 PM, Philip Prindeville wrote: I never like the idea of throwing stderr away blindly. If there's a particular message that you know you can safely ignore, I would grep it out. There's a trick for grepping on stderr and keeping it separate from stdout... Let's see if I can find

Re: [OpenWrt-Devel] [PATCH] Tiny fix for the comgt 3G button hotplug script

2011-06-19 Thread Philip Prindeville
On 6/18/11 4:17 AM, Linus Nielsen Feltzing wrote: > The /etc/hotplug.d/button/05-3g script is unhappy if the chat script > outputs anything on stdout. I fixed this by redirecting the output from > ifup/ifdown to /dev/null. Without this fix, the 3G/WAN button won't work > on my WRT54G3G with an A

[OpenWrt-Devel] [PATCH] Tiny fix for the comgt 3G button hotplug script

2011-06-18 Thread Linus Nielsen Feltzing
The /etc/hotplug.d/button/05-3g script is unhappy if the chat script outputs anything on stdout. I fixed this by redirecting the output from ifup/ifdown to /dev/null. Without this fix, the 3G/WAN button won't work on my WRT54G3G with an Aircard 880 modem (since it outputs "SIM ready" and "PIN s