maemo.org Bugzilla – Bug 7733
ifupdown script environment contains empty IFACE and LOGICAL values when connecting to GPRS
Last modified: 2010-06-21 10:58:59 UTC
You need to log in before you can comment on or make changes to this bug.
SOFTWARE VERSION: 2.2009.51-1 EXACT STEPS LEADING TO PROBLEM: 1. Put the following in /etc/network/if-up.d/test: #!/bin/sh env >> /tmp/test.log 2. chmod +x /etc/network/if-up.d/test 3. Establish a GPRS connection 4. egrep 'IFACE|LOGICAL' /tmp/test.log EXPECTED OUTCOME: LOGICAL=gprs0 IFACE=gprs0 ACTUAL OUTCOME: LOGICAL= IFACE= REPRODUCIBILITY: Always. OTHER COMMENTS: The same issue is observer with if-down.d, but I didn't test if-pre-up.d & if-post-down.d. For WLAN connections it works as expected: LOGICAL=wlan0 IFACE=wlan0
I can confirm this (see bug 7731).
I can confirm this too.
Confirming bug with the above script with latest release. 10 test runs connecting/disconnecting gprs, all with the same result.
if-pre-up.d scripts have always empty IFACE and LOGICAL values when connecting to any network (GPRS or Wifi). if-post-down.d scripts have empty IFACE and LOGICAL values when connecting to GPRS. When this bug will be fixed? Very annoying when developping network-related applications.
Internal comment by Nokia: "Fixing this could happen in 3 different places and none of them is trivial. Simple solution of assuming gprs0 does not bring any value as it not guaranteed to be the correct value." Hence for Nokia this is a WONTFIX for Maemo5 currently. Don't know about Maemo6 yet hence not closing yet as WONTFIX.
Fixed in libicd-network-gprs for Harmattan. WONTFIX for Maemo5.