2 # use led for keeping track of the state
3 case "$(cat /proc/diag/led/3g_green)" in
15 [ "$ACTION" = "released" -a "$BUTTON" = "3g" ] && {
16 HOTPLUG="$(cat /proc/sys/kernel/hotplug)"
17 (echo /bin/true > /proc/sys/kernel/hotplug)
22 config_get TYPE "$CONFIG_SECTION" TYPE
25 config_get proto "$CONFIG_SECTION" proto
26 config_get button "$CONFIG_SECTION" button
28 1|on|enabled) [ "$proto" = "3g" ] && button_action "$CONFIG_SECTION";;
35 (echo $HOTPLUG > /proc/sys/kernel/hotplug)