> The only problem I noticed is that lrcfg brings up the editor in Pico mode even though it is set to > the Wordstar mode. I changed the editor link to point to vi which works for me.
I set Pico as the default editor, since it is the default non-vi editor used by RedHat, and is closest to ae in terms of default key-mapping. > I also inserted a few lines of codes into the dhclient exit hooks to set twegner.dynodns.net to my > dhcp IP. A long time ago you suggested a few lines of script to check the result of http_get: > > # tell dynodns that the IP has changed > if http_get -a twegner.dynodns.net:mypassword \ > http://www.dynodns.net/pr/updatens.cgi | \ > grep NOERROR >/dev/null ; then > logger -t dynodns "update successful" > else > logger -t dynodns -s "update WAS NOT sucessful" > fi > #end dynodns changes > > The above code is inserted in the dhclient exit hooks right where the new IP is detected. But > even though the code correctly updates my dynamic IP, apparently the grep doesn't return > values as expected, because this code always reports "success" even though I edit the account > and make it wrong. > > I simply redirected the output of the grep to /var/log/dynodns.result which serves the purpose > OK. I think this is due to the migration to busybox grep. It apparently is not returning a different exit status when it finds (or doesn't find) the requested expression. Try replacing the if statement with: if [ ! -z `http_get -a twegner.dynodns.net:mypassword \ http://www.dynodns.net/pr/updatens.cgi | \ grep NOERROR` ] ; then ... Charles Steinkuehler http://lrp.steinkuehler.net http://c0wz.steinkuehler.net (lrp.c0wz.com mirror) _______________________________________________ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user
