[LFS Trac] #2057: Udev-122

LFS Trac trac at linuxfromscratch.org
Thu May 22 15:33:32 PDT 2008


#2057: Udev-122
------------------------------------------+---------------------------------
 Reporter:  matthew at linuxfromscratch.org  |        Owner:  lfs-book at linuxfromscratch.org
     Type:  enhancement                   |       Status:  new                          
 Priority:  normal                        |    Milestone:  7.0                          
Component:  Book                          |      Version:  SVN                          
 Severity:  normal                        |   Resolution:                               
 Keywords:                                |  
------------------------------------------+---------------------------------
Comment (by Bryan Kadzban):

 Replying to [comment:46 alexander at linuxfromscratch.org]:
 > With 2.6.18, the following works:
 >
 {{{
 for SYS in /sys/class/net/* ; do \
     INTERFACE=${SYS##*/} udevadm test --action=add --subsystem=net $SYS ;
 \
 done
 }}}

 Since you're providing --subsystem on the udevadm command line, might this
 work with kernels that don't provide the subsystem symlink on their own
 (i.e. older than 2.6.18)?  It would be nice if it did (if you still have
 any of those kernels around to test).  :-)

 Although even if it does work on older kernels now, future changes to udev
 might break it, too.  Hmm.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2057#comment:47>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.



More information about the lfs-book mailing list