summaryrefslogtreecommitdiff
path: root/scripts/local-top/udev_helper
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/local-top/udev_helper')
-rwxr-xr-xscripts/local-top/udev_helper23
1 files changed, 23 insertions, 0 deletions
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