Results 1 to 1 of 1
  1.    #1  
    I didn't test extensively, so I may be way off base here.

    It seems that WebOS always uses it's own resolver, which sometimes prefers to go out over ppp0 (evdo/1x) instead of eth0(local lan). This causes timeouts on some things for me, so I wrote the following to ensure that the phone always uses the local resolvers when on wifi. Since doing this, I have not had the problems on several sites, and also in the weather channel app (that's the one that made me look into this). Feedback and enlightenment welcome. Here is what I did:

    added to bottom of /etc/pmnetconfig/if-up:
    Code:
    run-parts /etc/network/if-up.d
    added to bottom of /etc/pmnetconfig/if-down:
    Code:
    run-parts /etc/network/if-down.d
    Files:
    Code:
    ls -l /etc/network/if-up.d/
    -rwxr-xr-x    1 root     root          209 Apr 11 20:01 addresolver
    Code:
    ls -l /etc/network/if-down.d/
    -rwxr-xr-x    1 root     root          152 Apr 11 20:01 removeresolver

    Code:
    cat /etc/network/if-up.d/addresolver 
    #!/bin/sh
    
    if [ ${CMINTERFACE} = 'eth0' ]; then
    
    mount -o rw,remount /
    
    RESOLVER=$(grep nameserver /tmp/resolv.conf)
    
    cat <<EOF >/etc/resolv.conf
    $RESOLVER
    nameserver 127.0.0.1
    EOF
    
    mount -o ro,remount /
    
    
    fi

    Code:
    cat /etc/network/if-down.d/removeresolver 
    #!/bin/sh
    
    if [ ${CMINTERFACE} = 'eth0' ]; then
    
    mount -o rw,remount /
    
    cat <<EOF >/etc/resolv.conf
    nameserver 127.0.0.1
    EOF
    
    mount -o ro,remount /
    
    fi
    Last edited by knobbysideup; 05/03/2010 at 01:05 PM.
    : (){:|:&};:

Posting Permissions