Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43225 - custom devices with udev
Summary: custom devices with udev
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-28 14:12 UTC by Ahmed Farid
Modified: 2005-08-16 11:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
the script (udh.py,1.83 KB, text/plain)
2004-02-28 14:14 UTC, Ahmed Farid
Details
sample configuration file (udh.conf,417 bytes, text/plain)
2004-02-28 14:15 UTC, Ahmed Farid
Details
updated script to fix perm problem. (udh.py,1.96 KB, text/plain)
2004-02-28 14:24 UTC, Ahmed Farid
Details
updated again to fix a bug if the directory already exist. (udh.py,2.13 KB, text/plain)
2004-03-13 09:53 UTC, Ahmed Farid
Details

Note You need to log in before you can comment on or make changes to this bug.
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