scripts/init-top/all_generic_ide
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | PREREQ="" |
| 4 | prereqs() |
| 5 | { |
| 6 | echo "$PREREQ" |
| 7 | } |
| 8 | case $1 in |
| 9 | # get pre-requisites |
| 10 | prereqs) |
| 11 | prereqs |
| 12 | exit 0 |
| 13 | ;; |
| 14 | esac |
| 15 | |
| 16 | # shellcheck disable=SC2013 |
| 17 | for x in $(cat /proc/cmdline); do |
| 18 | case ${x} in |
| 19 | all_generic_ide) |
| 20 | /sbin/modprobe ata_generic all_generic_ide=1 |
| 21 | ;; |
| 22 | all_generic_ide=*) |
| 23 | if [ -n "${x#all_generic_ide=}" ]; then |
| 24 | /sbin/modprobe ata_generic all_generic_ide=1 |
| 25 | fi |
| 26 | ;; |
| 27 | esac |
| 28 | done |