A gentoo user requested in bug 190143 [1] to change the way pppd deals
with interface up/down events. He requested to break current
ip-up/ip-down functionality into different scripts contained in
/etc/ppp/(ip-up.d,ip-down.d}.
What do you think about? Is it worth it?
Personally I think it is a good idea, but I have reserves when it comes
to user defined {ip-up,ip-down}.local scripts. IMO the best way to solve
this is to add this code to pkg_postinst():
if [ -f "${ROOT}"etc/ppp/ip-up.local ]; then
mv "${ROOT}"etc/ppp/ip-up.local "${ROOT}"etc/ppp/ip-up.d/99-local
fi
[1] http://bugs.gentoo.org/show_bug.cgi?id=190143
with interface up/down events. He requested to break current
ip-up/ip-down functionality into different scripts contained in
/etc/ppp/(ip-up.d,ip-down.d}.
What do you think about? Is it worth it?
Personally I think it is a good idea, but I have reserves when it comes
to user defined {ip-up,ip-down}.local scripts. IMO the best way to solve
this is to add this code to pkg_postinst():
if [ -f "${ROOT}"etc/ppp/ip-up.local ]; then
mv "${ROOT}"etc/ppp/ip-up.local "${ROOT}"etc/ppp/ip-up.d/99-local
fi
[1] http://bugs.gentoo.org/show_bug.cgi?id=190143