Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156948 - sys-apps/ifplugd-0.28-r7 does not have an init script.
Summary: sys-apps/ifplugd-0.28-r7 does not have an init script.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-02 14:43 UTC by t23c
Modified: 2007-01-12 19:30 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ifplugd init script from an older version (ifplugd,4.14 KB, text/plain)
2007-01-12 17:28 UTC, Ian Stakenvicius
Details

Note You need to log in before you can comment on or make changes to this bug.
Description t23c 2006-12-02 14:43:43 UTC
sys-apps/ifplugd-0.28-r7 does not have an init script.
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2006-12-02 15:00:45 UTC
Maybe read the messages?

pkg_postinst() {
        # Warn about old init script
        einfo "baselayout now starts ifplugd automatically on wired interfaces"
        einfo "If you do not want this behaviour then add !plug to your modules"
        einfo "in /etc/conf.d/net like so"
        einfo "   modules=( \"!plug\" )"

Basically baselayout takes care of starting ifplugd for you if you so want.
Comment 2 Ian Stakenvicius 2007-01-12 16:16:13 UTC
Yes, and it's nice that baselayout supports ifplugd now, but the way ifplugd works in baselayout is ... not perferable to some of us.  It would be nice if we could get the init scripts back, even if they were only installed via a use flag.

It's nice that modules="!plug" can turn off support in baselayout, but if we want old support we have to write new init scripts ourselves, which is a bit of a PITA..
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-01-12 16:58:02 UTC
(In reply to comment #2)
> Yes, and it's nice that baselayout supports ifplugd now, but the way ifplugd
> works in baselayout is ... not perferable to some of us.

Why?

Let's just say that providing an init script for ifplugd isn't an option at this time.

Comment 4 Ian Stakenvicius 2007-01-12 17:28:11 UTC
Created attachment 106702 [details]
ifplugd init script from an older version

Allowing ifplugd to control the net.* scripts entirely allows one to do some more advanced things, such as switch on/off other interfaces on plug, without needing to write pre_up() functions, etc.  Just an example.  

Also, services that 'need net' or 'use net' don't get scheduled to start on eth0 (if theres no wire on it) and stay stopped even when eth1 comes up..

I'm attaching the ifplugd init script from a long time ago (i still had it in a backup), in case anyone wants to use it..
Comment 5 Roy Marples (RETIRED) gentoo-dev 2007-01-12 19:30:57 UTC
(In reply to comment #4)
> Allowing ifplugd to control the net.* scripts entirely allows one to do some
> more advanced things, such as switch on/off other interfaces on plug, without
> needing to write pre_up() functions, etc.  Just an example.

AFAIK you can't do that in the old ifplug script either.
Or do you mean specify which interfaces you want plugged? You can do that like so
modules_eth1=( "!plug" )

Also, specify the preup function

> Also, services that 'need net' or 'use net' don't get scheduled to start on
> eth0 (if theres no wire on it) and stay stopped even when eth1 comes up..

Depends on baselayout version.
That should work in 1.12, but there's an open bug for 1.13 which should be fixed soon.

That's nothing that the attached init script can do that baselayout cannot.