clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change
on this file since e6c3117 was
e6c3117,
checked in by Jim Gifford <clfs@…>, 18 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
|
Line | |
---|
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 |
---|
23 | |
---|
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 |
---|
31 | fi |
---|
32 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.