Changeset 1912

Show
Ignore:
Timestamp:
30/05/11 12:58:49 (2 years ago)
Author:
matthijs
Message:

umtsd: Empty resolv.conf after unplugging a 3g modem.

This ensures that the dns servers from the 3g connection don't linger
around. This wasn't previously a problem, since the Fonera always
switched back to dhcp mode, which overwrites the resolv.conf file.

References: #405

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/fon/umtsd/files/etc/hotplug.d/ttyusb/10-umts

    r1910 r1912  
    3737        fi 
    3838 
     39        # Empty resolv.conf, since that contains the UMTS dns servers. 
     40        # When switching back to DHCP, the file will be overwritten, but 
     41        # when switching back to static or bridge mode, they would only 
     42        # get appended (below our DNS servers) 
     43        echo -n > /etc/resolv.conf 
     44 
    3945        # Remove a bunch of state variables (in particular attached 
    4046        # marks the modem as attached).