You are not logged in.

#1 2006-08-28 08:28:57

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

hotplug++

T2 project has its own hotplug for pupulating /dev.
What do you think about hotplug++?
How this is better/worse than Arch's hwdetect?


to live is to die

Offline

#2 2006-08-28 08:59:09

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: hotplug++

Arch doesn't use hwdetect anymore - it's all done by udev. Re the better/worse question, well, you'll need a C/C++ guru for that - and that's not me.

Offline

#3 2006-08-28 10:13:46

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: hotplug++

These guys have obviously never heard about udev. But then, hotplug++ seems to be faster than udev.

Offline

#4 2006-08-28 10:19:38

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: hotplug++

tomk wrote:

Arch doesn't use hwdetect anymore - it's all done by udev.

Yes. :oops: But why there is /sbin/hwdetect in initscripts?


to live is to die

Offline

#5 2006-08-28 10:21:42

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: hotplug++

brain0 wrote:

These guys have obviously never heard about udev. But then, hotplug++ seems to be faster than udev.

6.0 Changes
User visible
u/dev (and classic /dev support) - no devfs anymore

They know about udev and use it. But not as good as Arch. smile


to live is to die

Offline

#6 2006-08-28 11:34:52

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: hotplug++

hwdetect is still used by mkinitrd - that's why it's still there. Expect it to disappear after mkinitcpio migration is complete.

Offline

#7 2006-08-28 11:38:59

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,322

Re: hotplug++

nah i don't think it will disappear, it's still usefull for getting a MODULES= array.
but it will have no major role on boot anymore, more a debug utility

Offline

#8 2006-08-28 11:55:42

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: hotplug++

tpowa wrote:

nah i don't think it will disappear, it's still usefull for getting a MODULES= array.
but it will have no major role on boot anymore, more a debug utility

I agree. The tool is tiny and still very useful and should stay.

Offline

#9 2006-08-28 12:18:16

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: hotplug++

OK - thanks for the correction. smile

Offline

#10 2006-08-28 15:53:58

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: hotplug++

You can get a dump of modules for the MODULES array in one line....

modprobe --show-depends -a $(find /sys/devices -name modalias -exec cat {}+) | sort -u | sed -i "s|.*/(^/*).ko|1|g"

Untested..... but still.

Offline

#11 2006-08-28 18:44:26

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: hotplug++

find: missing argument to `-exec'
Usage: modprobe [-v] [-V] [-C config-file] [-n] [-i] [-q] [-b] [-o <modname>] <modname> [parameters...]
modprobe -r [-n] [-i] [-v] <modulename> ...
modprobe -l -t <dirname> [ -a <modulename> ...]
sed: no input files

Yay for untested code.

Offline

#12 2006-08-28 20:04:31

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: hotplug++

codemac wrote:
find: missing argument to `-exec'
Usage: modprobe [-v] [-V] [-C config-file] [-n] [-i] [-q] [-b] [-o <modname>] <modname> [parameters...]
modprobe -r [-n] [-i] [-v] <modulename> ...
modprobe -l -t <dirname> [ -a <modulename> ...]
sed: no input files

Yay for untested code.

damn you - missing semicolon... fix it for me, I have no linux access ATM.

Offline

Board footer

Powered by FluxBB