summaryrefslogtreecommitdiffstats
path: root/scripts/init-top/all_generic_ide
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 10:29:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 10:29:49 +0000
commit1fd7da94235a7ee9cc21d25d39e6c03421ef5ab6 (patch)
treeb4cc647f3e5833b224c5fd593023397a80cca78f /scripts/init-top/all_generic_ide
parentInitial commit. (diff)
downloadinitramfs-tools-1fd7da94235a7ee9cc21d25d39e6c03421ef5ab6.tar.xz
initramfs-tools-1fd7da94235a7ee9cc21d25d39e6c03421ef5ab6.zip
Adding upstream version 0.140.upstream/0.140upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'scripts/init-top/all_generic_ide')
-rwxr-xr-xscripts/init-top/all_generic_ide28
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/init-top/all_generic_ide b/scripts/init-top/all_generic_ide
new file mode 100755
index 0000000..0f408d0
--- /dev/null
+++ b/scripts/init-top/all_generic_ide
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+PREREQ=""
+prereqs()
+{
+ echo "$PREREQ"
+}
+case $1 in
+# get pre-requisites
+prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+# shellcheck disable=SC2013
+for x in $(cat /proc/cmdline); do
+ case ${x} in
+ all_generic_ide)
+ modprobe ata_generic all_generic_ide=1
+ ;;
+ all_generic_ide=*)
+ if [ -n "${x#all_generic_ide=}" ]; then
+ modprobe ata_generic all_generic_ide=1
+ fi
+ ;;
+ esac
+done