5 local _drv _cu_type _dev_type
6 local _rule
=/etc
/udev
/rules.d
/51-dasd-${ccw}.rules
8 if [ -e /sys
/bus
/ccw
/devices
/${ccw} ] ; then
9 read _cu_type
< /sys
/bus
/ccw
/devices
/${ccw}/cutype
10 read _dev_type
< /sys
/bus
/ccw
/devices
/${ccw}/devtype
13 3990/*|
2105/*|
2107/*|
1750/*|
9343/*)
30 [ -z "${_drv}" ] && return 0
32 [ -e ${_rule} ] && return 0
35 ACTION=="add", SUBSYSTEM=="ccw", KERNEL=="$ccw", IMPORT{program}="collect $ccw %k ${ccw} $_drv"
36 ACTION=="add", SUBSYSTEM=="drivers", KERNEL=="$_drv", IMPORT{program}="collect $ccw %k ${ccw} $_drv"
37 ACTION=="add", ENV{COLLECT_$ccw}=="0", ATTR{[ccw/$ccw]online}="1"
41 for dasd_arg
in $
(getargs root
=) $
(getargs resume
=); do
44 /dev
/disk
/by-path
/ccw-
*)
45 ccw_arg
=${dasd_arg##*/}
48 if [ -n "$ccw_arg" ] ; then