Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 43225

Summary: custom devices with udev
Product: Gentoo Linux Reporter: Ahmed Farid <afw2000>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: VERIFIED NEEDINFO    
Severity: enhancement CC: x86-kernel
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: the script
sample configuration file
updated script to fix perm problem.
updated again to fix a bug if the directory already exist.

Description Ahmed Farid 2004-02-28 14:12:30 UTC
well it's not had to edit /sbin/rc or /etc/conf.d/local.start but there must be an easier way.
i've made a simple python script to make this a tad easier with rules like udev.rules (well almost).
Comment 1 Ahmed Farid 2004-02-28 14:14:42 UTC
Created attachment 26534 [details]
the script
Comment 2 Ahmed Farid 2004-02-28 14:15:39 UTC
Created attachment 26535 [details]
sample configuration file

usage example : 
[11:40:21][~/programming/python/udh]-> chmod +x udh.py
[11:40:21][~/programming/python/udh] -> ./udh.py
~/programming/python/udh/udh.conf
Error : [ppp_generic] isn't currently loaded or device already exists.
Making node : /dev/test-test
	Creating Symlink from /dev/test-test to /dev/test2
Error : [none] isn't currently loaded or device already exists.
[11:40:23][~/programming/python/udh] -> l /dev/test* && rm /dev/test* -f
c-w----r-T    1 oneofone users	    1,	 3 Feb 28 23:40 /dev/test-test
lrwxrwxrwx    1 root	 root		14 Feb 28 23:40 /dev/test2 ->
/dev/test-test
[11:40:25][~/programming/python/udh] ->
Comment 3 Ahmed Farid 2004-02-28 14:24:09 UTC
Created attachment 26537 [details]
updated script to fix perm problem.
Comment 4 Ahmed Farid 2004-03-13 09:53:40 UTC
Created attachment 27296 [details]
updated again to fix a bug if the directory already exist.
Comment 5 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-03-20 11:35:36 UTC
Why are custom device nodes needed?

udev should provide everything you need.  If not, the kernel needs to be fixed.
Comment 6 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-08-16 11:52:17 UTC
Closing due to lack of info