You are not logged in.

#1 2008-07-14 10:37:54

ellion
Member
Registered: 2007-09-03
Posts: 4

Execute script on interface up

Hi there!

What is the archway of executing a script on boot after all interfaces are up? I couldnt figure this one out so far. In debian I would edit my /etc/network/interfaces.

Any help appreciated!


best regards,
daniel

Offline

#2 2008-07-14 10:54:00

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Execute script on interface up

On Arch, you can use netcfg, create a suitable profile, and add a command in POST_UP="" - though that's just for that interface/profile, not all.

If you want to run something only if all interfaces are up, and you've got both configured with netcfg I'd just add a few lines to rc.local like below....

. /usr/lib/network/network.subr

if check_iface eth0 && check_iface wlan0; then
    echo "Both are up, yay"
fi

Cheers,

James

Offline

#3 2008-07-14 11:15:25

ellion
Member
Registered: 2007-09-03
Posts: 4

Re: Execute script on interface up

yay, thanks. That will fit my needs I guess.

Offline

Board footer

Powered by FluxBB