LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 05-25-2013, 01:06 PM   #1
intmail01
Member
 
Registered: May 2013
Posts: 91

Rep: Reputation: Disabled
Why kernel doesnt run /sbin/hotplug ?


Hello,

Issues are simple, when I insert usb memory stick the kernel didnt launch /sbin/hotplug program.
I set it as executable binary and one time as just a simple text file containing some bash command but nothing happens.

I checked the file /proc/sys/kernel/hotplug, it contains the string path "/sbin/hotplug"

thank you.

Last edited by intmail01; 05-26-2013 at 01:20 PM.
 
Old 05-26-2013, 10:07 AM   #2
bloodstreetboy
Member
 
Registered: May 2012
Posts: 201
Blog Entries: 3

Rep: Reputation: 37
The kernel calls hotplug agents using the /sbin/hotplug program. That's the name we'll assume here, but the actual name is gotten from the /proc/sys/kernel/hotplug file. Like all this functionality, it isn't available unless the kernel is compiled with the HOTPLUG kernel configuration option.

A USB policy agent should be installed into /etc/hotplug/usb.agent where it will be invoked by /sbin/hotplug as appropriate.
 
Old 05-26-2013, 01:24 PM   #3
intmail01
Member
 
Registered: May 2013
Posts: 91

Original Poster
Rep: Reputation: Disabled
Config is already OK for me

CONFIG_HOTPLUG=y

I use slackware 13.1 with kernel 2.6.35.4
 
Old 11-11-2014, 05:34 AM   #4
intmail01
Member
 
Registered: May 2013
Posts: 91

Original Poster
Rep: Reputation: Disabled
/sbin/hotplug is deprecated, udev is the new feature
 
  


Reply



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
[SOLVED] mounting pendrive (USB) via /sbin/hotplug NevemTeve Linux - Hardware 1 02-15-2012 03:36 PM
target filesystem doesnt have /sbin/init. mnconny Linux - Newbie 3 10-02-2010 04:42 PM
/sbin/hotplug not being executed when hotplugging usb stick monk576 Linux - Hardware 1 11-26-2008 01:30 AM
DHCP doesnt renew lease on hotplug sm1else Linux - Wireless Networking 2 04-05-2005 03:10 AM
Upgraded kernel, lilo.conf, didn't run /sbin/lilo dtashima Linux - Newbie 4 10-18-2004 11:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:39 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
Open Source Consulting | Domain Registration