Changeset a6cd72e for udev/ide.sh
- Timestamp:
- Feb 21, 2006, 9:37:37 AM (19 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 128c984
- Parents:
- ce36880
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
udev/ide.sh
-
Property mode
changed from
100644
to100755
rce36880 ra6cd72e 2 2 ######################################################################## 3 3 # 4 # Description : load_ide_modules4 # Description : Load ide 5 5 # 6 6 # Authors : Based on Open Suse Udev Rules … … 12 12 # Version : 00.00 13 13 # 14 # Notes : 14 # Notes : 15 15 # 16 16 ######################################################################## 17 17 18 # calculate device name from bus and drive number 18 19 device=${DEVPATH#/devices/*/ide?/} 19 20 drive=${device#?.} 20 21 bus=${device%.?} 21 name=$(printf "hd%x" $(($drive + $bus * 2 + 10))) 22 unitnum=$((96 + 1 + $drive + $bus * 2)) 23 name=$(printf "hd\\$(printf '%o' $unitnum)") 22 24 procfile="/proc/ide/$name/media" 23 25 24 loop=50 26 # wait for /proc file to appear 27 loop=30 25 28 while ! test -e $procfile; do 26 29 sleep 0.1; 27 test "$loop" -gt 0 || exit 130 test "$loop" -gt 0 || break 28 31 loop=$(($loop - 1)) 29 32 done -
Property mode
changed from
Note:
See TracChangeset
for help on using the changeset viewer.