clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 9fdf17d was e6c3117, checked in by Jim Gifford <clfs@…>, 19 years ago |
r3475@server: jim | 2006-05-14 11:52:06 -0700
Removed debugging helper from cdsymlink_helper.sh
|
-
Property mode
set to
100755
|
File size:
702 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
|
---|
| 30 | echo "link = $link" >> /tmp/cdrom
|
---|
[93a4751] | 31 | fi
|
---|
[f0da65f] | 32 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.