Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42804 - Allow ifplugd options dedicated to specific device
Summary: Allow ifplugd options dedicated to specific device
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 42802 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-24 13:56 UTC by Petric Frank
Modified: 2005-09-01 08:44 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petric Frank 2004-02-24 13:56:06 UTC
sys-apps/ifplugd allows only a global definition of start parameters. They
apply to all controlled devices. It should allow the definition of different
ifplugd start parameters per controlled device.

I added in /etc/conf.d/ifplugd new entries in the way:
  ARGS_<device>="-a -w"

Sample:
  ARGS_eth0="-a -w"

This requires a change in /etc/init.d/ifplugd. The start function have to
look like:

start() {
        einfon "Starting ifplugd: "
        for IF in $INTERFACES ; do
                echo -n "$IF "

                ARGS_IF="$(eval echo \$\{ARGS_${IF}\})"
                if [ -z "${ARGS_IF}" ]
                then
			# use $ARGS if none given for this device
                        ARGS_IF=${ARGS}
                fi

                $IFPLUGD -i $IF $ARGS_IF
        done
        echo
        eend 0
}

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Actual Results:  
 

Expected Results:  
Allow seperate ifplugd options for different controlled network devices.
Comment 1 Petric Frank 2004-02-24 13:59:48 UTC
*** Bug 42802 has been marked as a duplicate of this bug. ***
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2004-05-18 08:18:12 UTC
is this still an issue wiht ifplugd-0.25 ?
Comment 3 Petric Frank 2004-05-18 11:00:12 UTC
Had a look to version 0.25.
It seems that this bug does no more apply to ifplugd if version 0.25 is active.
But version 0.25 is actually marked unstable.
Comment 4 Roy Marples (RETIRED) gentoo-dev 2005-09-01 08:37:59 UTC
Deffo fixed in 0.28-r1