Browse Source
git-svn-id: svn://svn.opensde.net/opensde/package/branches/udev@21252 10447126-35f2-4685-b0cf-6dd780d3921fearly
3 changed files with 0 additions and 140 deletions
@ -1,69 +0,0 @@ |
|||||||
#!/bin/sh |
|
||||||
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
||||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
||||||
# |
|
||||||
# Filename: package/.../udev/scripts/cdsymlink_helper.sh |
|
||||||
# Copyright (C) 2006 The OpenSDE Project |
|
||||||
# |
|
||||||
# More information can be found in the files COPYING and README. |
|
||||||
# |
|
||||||
# This program is free software; you can redistribute it and/or modify |
|
||||||
# it under the terms of the GNU General Public License as published by |
|
||||||
# the Free Software Foundation; version 2 of the License. A copy of the |
|
||||||
# GNU General Public License can be found in the file COPYING. |
|
||||||
# --- SDE-COPYRIGHT-NOTE-END --- |
|
||||||
|
|
||||||
######################################################################## |
|
||||||
# |
|
||||||
# Description : cdsymlink_helper.sh |
|
||||||
# |
|
||||||
# Authors : Jim Gifford |
|
||||||
# |
|
||||||
# Version : 00.00 |
|
||||||
# |
|
||||||
# Notes : |
|
||||||
# |
|
||||||
######################################################################## |
|
||||||
|
|
||||||
. /lib/udev/helper.functions |
|
||||||
. /etc/sysconfig/udev_helper |
|
||||||
|
|
||||||
KERN_NAME="$1" |
|
||||||
BUS="$2" |
|
||||||
test=0 |
|
||||||
|
|
||||||
if [ "$KERN_NAME" = "" ]; then |
|
||||||
mesg Bad invocation: \$1 is not set |
|
||||||
exit 1 |
|
||||||
fi |
|
||||||
|
|
||||||
if [ "$BUS" = "ide" ]; then |
|
||||||
FILES="`ls /sys/bus/ide/drivers/ide-cdrom | grep '\.' `" |
|
||||||
for file in $FILES; do |
|
||||||
TEST="`ls /sys/bus/ide/drivers/ide-cdrom/$file | grep -c $KERN_NAME`" |
|
||||||
if [ "$TEST" = "1" ]; then |
|
||||||
link="`echo $file | cut -f2 -d.`" |
|
||||||
while [ $test -lt 1 ] ; do |
|
||||||
if [ -e /dev/cdrom$link ]; then |
|
||||||
link=$[$link+1] |
|
||||||
else |
|
||||||
test=1 |
|
||||||
echo $link |
|
||||||
fi |
|
||||||
done |
|
||||||
fi |
|
||||||
done |
|
||||||
fi |
|
||||||
|
|
||||||
if [ "$BUS" = "scsi" ]; then |
|
||||||
link=$KERN_NAME |
|
||||||
while [ $test -lt 1 ] ; do |
|
||||||
if [ -e /dev/cdrom$link ]; then |
|
||||||
link=$[$link+1] |
|
||||||
else |
|
||||||
test=1 |
|
||||||
echo $link |
|
||||||
fi |
|
||||||
done |
|
||||||
fi |
|
||||||
|
|
@ -1,17 +0,0 @@ |
|||||||
#!/bin/sh |
|
||||||
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
||||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
||||||
# |
|
||||||
# Filename: package/.../udev/scripts/dvb.sh |
|
||||||
# Copyright (C) 2006 The OpenSDE Project |
|
||||||
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
||||||
# |
|
||||||
# More information can be found in the files COPYING and README. |
|
||||||
# |
|
||||||
# This program is free software; you can redistribute it and/or modify |
|
||||||
# it under the terms of the GNU General Public License as published by |
|
||||||
# the Free Software Foundation; version 2 of the License. A copy of the |
|
||||||
# GNU General Public License can be found in the file COPYING. |
|
||||||
# --- SDE-COPYRIGHT-NOTE-END --- |
|
||||||
/bin/echo $1 | /bin/sed 's,dvb\([0-9]\)\.\([^0-9]*\)\([0-9]\),dvb/adapter\1/\2\3,' |
|
||||||
|
|
@ -1,54 +0,0 @@ |
|||||||
#!/bin/sh |
|
||||||
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
||||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
||||||
# |
|
||||||
# Filename: package/.../udev/scripts/load_floppy_module.sh |
|
||||||
# Copyright (C) 2006 The OpenSDE Project |
|
||||||
# |
|
||||||
# More information can be found in the files COPYING and README. |
|
||||||
# |
|
||||||
# This program is free software; you can redistribute it and/or modify |
|
||||||
# it under the terms of the GNU General Public License as published by |
|
||||||
# the Free Software Foundation; version 2 of the License. A copy of the |
|
||||||
# GNU General Public License can be found in the file COPYING. |
|
||||||
# --- SDE-COPYRIGHT-NOTE-END --- |
|
||||||
|
|
||||||
######################################################################## |
|
||||||
# |
|
||||||
# Description : load_floppy_module |
|
||||||
# |
|
||||||
# Authors : Based on Open Suse Udev Rules |
|
||||||
# kay.sievers@suse.de |
|
||||||
# |
|
||||||
# Adapted to : Jim Gifford |
|
||||||
# LFS |
|
||||||
# |
|
||||||
# Version : 00.00 |
|
||||||
# |
|
||||||
# Notes : Loads the floppy module based upon contents of the NVRAM |
|
||||||
# |
|
||||||
######################################################################## |
|
||||||
|
|
||||||
PROC=/proc/driver/nvram |
|
||||||
|
|
||||||
# wait for /proc file to appear |
|
||||||
loop=10 |
|
||||||
while ! test -e $PROC; do |
|
||||||
sleep 0.1; |
|
||||||
test "$loop" -gt 0 || break |
|
||||||
loop=$(($loop - 1)) |
|
||||||
done |
|
||||||
|
|
||||||
if [ ! -r /proc/driver/nvram ]; then |
|
||||||
exit 0; |
|
||||||
fi |
|
||||||
|
|
||||||
floppy_devices=$(cat $PROC | sed -n '/Floppy.*\..*/p') |
|
||||||
|
|
||||||
if [ -n "$floppy_devices" ]; then |
|
||||||
/sbin/modprobe block-major-2 |
|
||||||
else |
|
||||||
/bin/true |
|
||||||
fi |
|
||||||
|
|
||||||
exit $? |
|
Loading…
Reference in new issue