clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 31f8160 was 5048c53, checked in by Jim Gifford <clfs@…>, 19 years ago |
r3485@server: jim | 2006-05-14 11:57:40 -0700
Removed debugging information.
|
-
Property mode
set to
100755
|
File size:
665 bytes
|
Rev | Line | |
---|
[93a4751] | 1 | #!/bin/sh
|
---|
| 2 | ########################################################################
|
---|
| 3 | #
|
---|
| 4 | # Description : cdsymlink_helper.sh
|
---|
| 5 | #
|
---|
| 6 | # Authors : Jim Gifford
|
---|
| 7 | #
|
---|
| 8 | # Version : 00.00
|
---|
| 9 | #
|
---|
| 10 | # Notes :
|
---|
| 11 | #
|
---|
| 12 | ########################################################################
|
---|
| 13 |
|
---|
| 14 | . /lib/udev/helper.functions
|
---|
| 15 | . /etc/sysconfig/udev_helper
|
---|
| 16 |
|
---|
| 17 | KERN_NAME="$1"
|
---|
| 18 |
|
---|
| 19 | if [ "$KERN_NAME" = "" ]; then
|
---|
| 20 | mesg Bad invocation: \$1 is not set
|
---|
| 21 | exit 1
|
---|
| 22 | fi
|
---|
[e6c3117] | 23 |
|
---|
[f0da65f] | 24 | FILES="`ls /sys/bus/ide/drivers/ide-cdrom | grep 1.`"
|
---|
| 25 | for file in $FILES; do
|
---|
| 26 | TEST="`ls /sys/bus/ide/drivers/ide-cdrom/$file | grep -c $KERN_NAME`"
|
---|
| 27 | if [ "$TEST" = "1" ]; then
|
---|
| 28 | link="`echo $file | cut -f2 -d.`"
|
---|
| 29 | echo $link
|
---|
[93a4751] | 30 | fi
|
---|
[f0da65f] | 31 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.