I unmerged ifplugd and merged netplug-1.2.9. Alas, the latter doesn't have any scripts in /etc/init.d. I checked "the source" and I've that there IS some script (rc.netplugd), but it hasn't been installed. Read: the ebuild is apparently missing something. Reproducible: Always Steps to Reproduce: 1. unmask netplug 2. emerge -av netplug 3. ls -al /etc/init.d 4. # go hmmmm... 5. ebuild /usr/portage/sys-apps/netplug/netplug-1.2.9.ebuild unpack 6. ls -al /var/tmp/portage/netplug-1.2.9/work/netplug-1.2.9/scripts Actual Results: # ls -al /var/tmp/portage/netplug-1.2.9/work/netplug-1.2.9/scripts razem 16 drwxrwxr-x 2 root root 4096 sty 8 2005 . drwxrwxr-x 6 root root 4096 wrz 15 10:51 .. -r-xr-xr-x 1 root root 1337 kwi 25 2004 netplug -r-xr-xr-x 1 root root 1289 sty 8 2005 rc.netplugd Expected Results: The ebuild should put a file called "netplugd" into /etc/init.d, so rc-update could be used to add into default runlevel. I thought that the netplug is the way to go (no hacks, works "Just Like That", and so on). So I unmerged "ifplugd" in favor of "netplug" and bummer... Nothing serious, really, but somewhat annoying.
netplug is controlled by the net.eth0 scripts in baselayout and as such does not need an init script of it's own. However, you do need baselayout-1.12.0_pre8-r2 to get it working. Even then there is an issue where netplug may stop on the wrong interface when you stop it, but that will be fixed in pre9
Well, it seems that I wouldn't be able right now to test "netplug"... How unfortunate. :-( I did the following: # cd /var/tmp/portage/netplug-1.2.9/work/netplug-1.2.9/scripts # cp -a rc.netplugd /etc/init.d/netplugd # rc-update add netplugd default # /etc/init.d/netplugd start /etc/init.d/netplugd: line 15: /etc/rc.d/init.d/functions: No such file or directory # qpkg -I -v baselayout sys-apps/baselayout-1.11.13-r1 * So, as I'm not going to test new baselayout (I've found that info myself :-), netplugd goes off my list right now. Coming back to quickpkg'ed "ifplugd". Thanks for the answer and good luck with enhancing "netplug"!