[maemo-users] Dinamically changing /etc/resolv.conf (in connection with using openvpn)
From: Thomas Maass mase at setho.orgDate: Mon Apr 16 16:14:52 EEST 2012
- Previous message: aptitude gives me always segfault
- Next message: Could any one send me an osso-xterm for OS2007? thank you!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: This is a digitally signed message part URL: <http://lists.maemo.org/pipermail/maemo-users/attachments/20120416/d41a2199/attachment.pgp>
- Previous message: aptitude gives me always segfault
- Next message: Could any one send me an osso-xterm for OS2007? thank you!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]