aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-07-22 04:41:47 +0000
committerBill Nottingham <notting@redhat.com>2002-07-22 04:41:47 +0000
commit39f6d1e3d148362a27bb2bd5490156fb3057bc71 (patch)
treee57d43e05ee14a844b437ea44570ad8274c675f4 /rc.d
parent5644940da79ef0834c1e66af2c7d26f20024bab6 (diff)
downloadinitscripts-39f6d1e3d148362a27bb2bd5490156fb3057bc71.tar
initscripts-39f6d1e3d148362a27bb2bd5490156fb3057bc71.tar.gz
initscripts-39f6d1e3d148362a27bb2bd5490156fb3057bc71.tar.bz2
initscripts-39f6d1e3d148362a27bb2bd5490156fb3057bc71.tar.xz
initscripts-39f6d1e3d148362a27bb2bd5490156fb3057bc71.zip
load firewire if needed/configured (#67203)
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit12
1 files changed, 12 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index bc68c778..baca24db 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -635,6 +635,18 @@ if [ -n "$needusbstorage" ]; then
modprobe usb-storage >/dev/null 2>&1
fi
+# Ooh, firewire too.
+if
+ aliases=`/sbin/modprobe -c | awk '/^alias ieee1394-controller/ { print $3 }'`
+ if [ -n "$aliases" -a "$aliases" != "off" ]; then
+ for alias in $aliases ; do
+ [ "$alias" != "off" ] && action $"Initializing firewire controller ($alias): " modprobe $alias
+ done
+ grep -q "SBP2" /proc/bus/ieee1394/devices 2>/dev/null && modprobe sbp2 >/dev/null 2>&1
+ fi
+fi
+
+
# If they asked for ide-scsi, load it
if grep -q "ide-scsi" /proc/cmdline ; then
modprobe ide-cd >/dev/null 2>&1