summaryrefslogtreecommitdiffstats
path: root/scripts/init-top/all_generic_ide
blob: cdf69cc428d512ae55cd0dc3ee601ebd3fc354ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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)
		/sbin/modprobe ata_generic all_generic_ide=1
		;;
	all_generic_ide=*)
		if [ -n "${x#all_generic_ide=}" ]; then
			/sbin/modprobe ata_generic all_generic_ide=1
		fi
		;;
	esac
done