Opened 8 years ago

Closed 6 years ago

Last modified 6 years ago

#704 closed defect (invalid)

after gprs connection is stopped nameservers are set to 127.0.0.1

Reported by: zoff99 Owned by: daniel
Priority: major Milestone:
Component: Frameworkd / FSO Version: SHR-unstable
Keywords: Cc:

Description

using: shr-lite-eglibc-ipk--20091114-om-gta02.rootfs.tar.gz

this old old bug ist still not fixed :-(

to fix you need to run:

cd /usr/lib/python2.6/site-packages/framework/subsystems/ogsmd/modems/abstract/
rm -f pdp.pyo
cat pdp.py |sed -e 's#echo nameserver 127.0.0.1 > /etc/resolv.conf#echo nameserver 208.67.222.222 \> /etc/resolv.conf\;echo nameserver 208.67.220.220 \>\> /etc/resolv.conf#' > pdp.py_patched
mv pdp.py_patched pdp.py

this is certainly only a HOT-fix
it should be fixed so that, after shutting down gprs connection the resolv.conf is restored to what it was before.

Change History (7)

comment:1 Changed 8 years ago by spaetz

  • Milestone set to MS2

Yep, that is bad. But this is really a frameworkd upstream issue. Can you file a bug on trac.freesmartphone.org, so mickey can have a look at that?

comment:2 Changed 8 years ago by zoff99

i already have :-)

http://trac.freesmartphone.org/ticket/491

yet it should be fixed in SHR also, or should we wait forever until its fixed upstream?

comment:3 Changed 8 years ago by spaetz

Cool. Yes it should be fixed in SHR, but without upstream fixing it there is little we can do. Surely just commenting out that one line will not be the correct fix, right?

comment:4 Changed 8 years ago by zoff99

the about is the correct fix. it works fine.
it does not comment out anything. just replaces the 127.0.0.1 with the free dns servers.

but still the question remains if gprs can be shut down without frameworkd hanging?
that is another ticket i filed :-)

comment:5 Changed 8 years ago by spaetz

Hehe, yep, frameworkd needs to fix that. I am not sure that hardcoding the opendns servers can be considered *correct*, but it's certainly better than hardcoding 127.0.0.1. The correct thing really would be to use resolvconf or whatever package allows the switching of that file back and forth. Perhaps even connman (which we already have running), is able to provide that functionality. I don't use GPRS, so I cannot test this stuff, unfortunately.

I'll ask mickey and some others what they think about us fixing it short-term this way.

comment:6 Changed 6 years ago by jama

  • Resolution set to invalid
  • Status changed from new to closed

comment:7 Changed 6 years ago by morphis

  • Milestone MS2 deleted

Milestone MS2 deleted

Note: See TracTickets for help on using tickets.