Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21202 - net-analyser/trafd init-script only works on eth0
Summary: net-analyser/trafd init-script only works on eth0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-18 15:03 UTC by Jan Eickmann
Modified: 2003-05-18 16:22 UTC (History)
0 users

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 Jan Eickmann 2003-05-18 15:03:31 UTC
The init-script for net-analyser/trafd-3.0.1 ignores the interface set in the
conf.d/trafd file and sets it hardcoded to eth0.
The following patch should fix it:

--- trafd-3.0.1-gentoo/trafd.init       2002-11-08 14:07:26.000000000 +0100
+++ trafd-3.0.1-gentoo-r1/trafd.init    2003-05-18 21:01:50.000000000 +0200
@@ -10,14 +10,14 @@
  
 start() {
        ebegin "Starting trafd"
-       /usr/bin/trafd -p -r -i eth0
+       /usr/bin/trafd -p -r -i ${IFACE}
        result=$?
        eend $result
 }
  
 stop() {
        ebegin "Stopping trafd"
-       /usr/bin/trafstop eth0 > /dev/null
+       /usr/bin/trafstop ${IFACE} > /dev/null
        result=$?
        eend $result
 }
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-05-18 16:22:06 UTC
fixed in cvs

thx