You are not logged in.

#1 2011-09-15 09:53:37

OutOfPhase
Member
From: The Netherlands
Registered: 2007-03-13
Posts: 33

'/etc/rc.d/network ifup eth0' issue

When I run the command '/etc/rc.d/network ifup eth0' it gives the error:

up: error fetching interface information: Device not found

It seems that the script calls 'ifconfig up' which should be  'ifconfig eth0 up'. This breaks my ifplugd setup.
Changing  'local ifcfg=${!1}' into 'local ifcfg=${1}' in the ifup function in the network script seems to fix this. Does anyone else also have the same issue?

Last edited by OutOfPhase (2011-09-15 09:54:14)

Offline

#2 2011-09-15 19:33:27

arcc
Member
From: ger
Registered: 2011-05-02
Posts: 47

Re: '/etc/rc.d/network ifup eth0' issue

ifconfig is deprecated

use the ip command:

ip link set up dev eth0

Offline

#3 2011-09-15 21:48:52

OutOfPhase
Member
From: The Netherlands
Registered: 2007-03-13
Posts: 33

Re: '/etc/rc.d/network ifup eth0' issue

I doubt it. If so, then initscripts and ifplugd are also deprecated.

Offline

#4 2011-09-15 22:06:59

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: '/etc/rc.d/network ifup eth0' issue

Did you read the link.  They are depreciated.  Not really a whole lot of doubt about it.


I laugh, yet the joke is on me

Offline

#5 2011-09-16 09:05:25

OutOfPhase
Member
From: The Netherlands
Registered: 2007-03-13
Posts: 33

Re: '/etc/rc.d/network ifup eth0' issue

Ok, so ifplugd does not work out of the box, as it uses broken functions.

Offline

#6 2011-09-16 13:13:58

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: '/etc/rc.d/network ifup eth0' issue

@OutOfPhase
You are correct and should submit a bug report.
The following command shows that ifplugds /etc/ifplugd/if{up,down}.d/01-route.sh depends on /sbin/route which is in net-tools.

for f in $(pacman -Qql net-tools); do grep $f $(pacman -Qql ifplugd | xargs); done

I wonder if we could add a variant of this to namcap. That is, find all binaries mentioned by scripts in a package that are included in neither that package nor in one of its dependencies.

Last edited by Stebalien (2011-09-16 13:20:31)


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

Board footer

Powered by FluxBB