Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 12-03-2012, 04:00 PM   #1
Registered: Aug 2004
Posts: 173

Rep: Reputation: 0
when eth0 cable disconnected, how's things in /etc/network/if-down.d invoked

when you disconnect eth0 cable,
driver will tell you eth0 is down.

things in /etc/network/if-down.d gets called very soon.

my question is, who tells system to run if-down.d ?

especially if i'm in the embedded world,
don't have the fancy stuff as network manager,
how can this be archived ?

thanks !
Old 12-04-2012, 11:25 AM   #2
Senior Member
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,665

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
my question is, who tells system to run if-down.d ?
The init puts down as requested by the /etc/network script.
It is a script that automatically sets down the device upon detach of cable. If you hate that behaviour you may comment out (#) the ifconfig block that puts the device down; then removing the cable the device is still up.

especially if i'm in the embedded world,
don't have the fancy stuff as network manager,
how can this be archived ?
From either another script:

/etc/network/if-up.d start {if it is there or something this kind is provided therein}
or from the terminal directly as root:

root-# ifconfig eth0 up
Hope that helps.

Good luck.

Last edited by malekmustaq; 12-04-2012 at 11:29 AM.
Old 12-09-2012, 09:06 PM   #3
Senior Member
Registered: May 2009
Location: WV, USA
Distribution: Slackware, Ubuntu, Amazon Linux
Posts: 1,830
Blog Entries: 21

Rep: Reputation: 119Reputation: 119
I suspect he wants to know in what way the knowledge of the interface status changes gets from the kernel to user space ... perhaps particularly if there are not userland programs like network manager or even udev taking care of this. So perhaps his question is if there is a kernel notification sent to userland (that can be registered for) or if something in userland must keep polling for the status changes.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
move cable from eth1 to eth0, but cannot ping eth0 5883 Linux - Networking 4 11-30-2012 06:03 PM
[SOLVED] Network eth0 activated upon boot in ifcfg-eth0; but no network connection after login TomRaaijmakers Linux - Networking 1 06-17-2010 08:29 AM
network disconnected dfw123 Linux - Networking 6 05-03-2007 04:42 PM
eth0 disconnected / not running kevinatkins Ubuntu 0 06-06-2005 04:51 PM
Mandriva(rake) 10.1 says incorrectly lan cable disconnected Mad Malc Mandriva 0 05-08-2005 10:18 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration