Hi there, I'm trying to get openresolv (resolvconf implementation) into Fedora (see bug #668153). I'm attaching patch that adds /sbin/resolvconf support for initscripts. It's simple and self-explanatory. We call /sbin/resolvconf -a "initscripts" < $tr in ifup-post to inform resolvconf that "initscripts" want to 'merge' resolv.conf from $tr In ifdown-post we call /sbin/resolvconf -f -d "initscripts" to let resolvconf know that we want to delete resolv.conf for "initscripts". If there's no /sbin/resolvconf nothing changes. There's also one suggested change in change_resolv_conf (). change_resolv_conf() wrote Jason Van Dias (see bug #125712, especially comments #23, #24, #34) to get something similar to resolvconf (to be specific: reload nscd whenever something changes /etc/resolv.conf). change_resolv_conf() can take either 1 (path to temporary resolv.conf) or more (probably lines of temporary resolv.conf) parameters. AFAICT there's no script (see bugs that #125712 depends on) running it with more then one parameter. So my suggestion is to remove this possibility and therefore simplify it.
Created attachment 480159 [details] patch
Meh - I'm not really fond of this idea, simply because it then means multiple code paths to have to debug if something goes wrong. (See also: supporting multiple DHCP clients, etc.)
Closing per bug #668153, comment #10