LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 12-03-2012, 04:00 PM   #1
5883
Member
 
Registered: Aug 2004
Posts: 170

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
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,218

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
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.


Quote:
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:

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

Code:
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
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Rep: Reputation: 115Reputation: 115
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.
 
  


Reply


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


All times are GMT -5. The time now is 01:34 AM.

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