source: udev/cdsymlink_helper.sh@ 9d06f61

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 9d06f61 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
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
17KERN_NAME="$1"
18
19if [ "$KERN_NAME" = "" ]; then
20 mesg Bad invocation: \$1 is not set
21 exit 1
22fi
23
24FILES="`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.