Re: Dinamically changing /etc/resolv.conf (in connection with using openvpn)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!
Just try to change /etc/openvpn/maemo-update-resolvconf like this:



source /etc/osso-af-init/af-defines.sh

for acct in `mc-tool list | grep sofiasip/sip`; do
mc-tool update $acct string:local-ip-address=$4
done

    ;;

down)
    if [ -f /etc/resolv.conf.prevpn ] ; then
        mv /etc/resolv.conf.prevpn /etc/resolv.conf
    fi

source /etc/osso-af-init/af-defines.sh

for acct in `mc-tool list | grep sofiasip/sip`; do
mc-tool update $acct clear:local-ip-address
done



The sofiasip lines are for changing the external IP address
during the VPN connection.

Thomas

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
maemo-users mailing list
maemo-users@xxxxxxxxx
https://lists.maemo.org/mailman/listinfo/maemo-users

[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux