LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-10-2012, 05:01 AM   #1
xerox
Member
 
Registered: Mar 2011
Posts: 43

Rep: Reputation: 0
Unhappy mdev not updating from hotplug


Hi,

I'm using mdev with hotplug from busybox to dynamically detect USB.

I have configured /etc/mdev.conf which is to run a script on detection of device sdb[1-9].

The script is being run when USB is connected, however this only happens when given command:

Code:
mdev -s
I have done:

Code:
echo /sbin/mdev > /proc/sys/kernel/hotplug
Why is this is not happening dynamically?

Is there some work around for this?

Thanks,
xerox
 
Old 07-13-2012, 06:49 AM   #2
xerox
Member
 
Registered: Mar 2011
Posts: 43

Original Poster
Rep: Reputation: 0
Talking

In fact my hotplug, was firing mdev, but I could not observe any output logs in console from the echo command in my script.

These were only observed after:

Code:
mdev -s
As mentioned in /docs/mdev.txt:

Quote:
You should also keep in mind that the kernel executes hotplug helpers with stdin, stdout, and stderr connected to /dev/null.
When i redirected my echo statements to a file, i was able to observe that my script was executing.

Thanks,
Xerox
 
  


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
Cannot access floppy drive device nodes created by Busybox's "mdev" or mknod NFSGamer Linux - General 4 05-28-2012 05:52 PM
busybox mdev issue junjinlee Linux - General 0 08-18-2010 11:04 PM
Gentoo upgrade kernel mdev problem Kilka Linux - Distributions 1 10-16-2006 11:49 AM
What is mdev obashir Linux - Networking 0 07-27-2004 10:51 AM
Firmware/Hotplug problem with Hauppauge DEC2540-T, Hotplug and MythTV bezoomny Linux - Hardware 0 05-17-2004 02:37 PM


All times are GMT -5. The time now is 05:53 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration