> No he shouldn't. drakconnect should put it in /etc/resolv.conf, but I > must admit that I don't see a case where it wouldn't be usefull
Sorry, but I don't want to use drakconnect, it uses kppp ... I want to use wvdial and I don't understand why there should be a line "# ppp temp entry" in /etc/resolv.conf > # for dynamic DNS support with gnome-ppp and kppp and draknet > if grep -i '#.*ppp temp entry' /etc/resolv.conf >& /dev/null ; then > ---- > If there is a line containing # ppp temp entry Ok, but why to do this ? When should this happen ? kppp writes /etc/resolv.conf after /etc/ppp/ip-up is run and I guess it deletes its entries before /etc/ppp/ip-down is run. I don't know any other soft that writes "# ppp temp entry" entries. > ---- > PPP_TEMP_ENTRY=`grep '#.*ppp temp entry' /etc/resolv.conf | \ > tail -1 | sed 's/.*ppp temp entry/# ppp temp entry/' ` > ---- > PPP_TEMP_ENTRY="# ppp temp entry", written in a style that it could > win the most useless use of sed award. agree :) Thanks for your help. -- Olivier Blin
