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 set successfully" when connecting).
Signed-off-by: Linus Nielsen Feltzing <li...@haxx.se>
---
Index: package/comgt/files/3g.button
===================================================================
--- package/comgt/files/3g.button (revision 27213)
+++ package/comgt/files/3g.button (working copy)
@@ -2,12 +2,12 @@
# use led for keeping track of the state
case "$(cat /proc/diag/led/3g_green)" in
1)
- ifdown "$1"
+ ifdown "$1" > /dev/null
ifup wan
;;
0)
ifdown wan
- ifup "$1"
+ ifup "$1" > /dev/null
;;
esac
)}
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel