summaryrefslogtreecommitdiff
path: root/scripts/local-top
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/local-top')
-rwxr-xr-xscripts/local-top/md2
-rwxr-xr-xscripts/local-top/udev_helper23
2 files changed, 24 insertions, 1 deletions
diff --git a/scripts/local-top/md b/scripts/local-top/md
index c7515fe..aa48474 100755
--- a/scripts/local-top/md
+++ b/scripts/local-top/md
@@ -1,6 +1,6 @@
#!/bin/sh
-PREREQ=""
+PREREQ="udev_helper"
prereqs()
{
diff --git a/scripts/local-top/udev_helper b/scripts/local-top/udev_helper
new file mode 100755
index 0000000..5a747ba
--- /dev/null
+++ b/scripts/local-top/udev_helper
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+PREREQ=""
+
+prereqs()
+{
+ echo "$PREREQ"
+}
+
+case $1 in
+# get pre-requisites
+prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+# If we're booting from IDE, it might not be a PCI controller,
+# but might be an old fashioned ISA controller; in which case
+# we need to load ide-generic.
+if [ ! -e "${ROOT}" -o "${ROOT}" = "/dev/root" ]; then
+ modprobe -q ide-generic
+fi