diff options
author | David Cantrell <dcantrell@redhat.com> | 2009-11-02 09:18:42 -1000 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2009-11-03 10:43:03 +0100 |
commit | fe32b77f87f33228df2f716ede22cfbe6d1048a4 (patch) | |
tree | dab7987cc5dc2aced139ba9612c3eb43191aef5b | |
parent | dd854ea985be7e507367802d47d92a088f748997 (diff) |
Rename existing 95dasd handling to 95dasd_mod.
Rename the existing rd_DASD module handler to rd_DASD_MOD.
-rwxr-xr-x | modules.d/95dasd_mod/check | 5 | ||||
-rwxr-xr-x | modules.d/95dasd_mod/install | 3 | ||||
-rwxr-xr-x | modules.d/95dasd_mod/installkernel | 5 | ||||
-rwxr-xr-x | modules.d/95dasd_mod/parse-dasd.sh | 7 |
4 files changed, 20 insertions, 0 deletions
diff --git a/modules.d/95dasd_mod/check b/modules.d/95dasd_mod/check new file mode 100755 index 0000000..a26196c --- /dev/null +++ b/modules.d/95dasd_mod/check @@ -0,0 +1,5 @@ +#!/bin/bash +arch=$(uname -m) +[ "$arch" = "s390" -o "$arch" = "s390x" ] || exit 1 + +exit 0 diff --git a/modules.d/95dasd_mod/install b/modules.d/95dasd_mod/install new file mode 100755 index 0000000..8545a25 --- /dev/null +++ b/modules.d/95dasd_mod/install @@ -0,0 +1,3 @@ +#!/bin/bash +inst_hook cmdline 30 "$moddir/parse-dasd.sh" + diff --git a/modules.d/95dasd_mod/installkernel b/modules.d/95dasd_mod/installkernel new file mode 100755 index 0000000..c83c194 --- /dev/null +++ b/modules.d/95dasd_mod/installkernel @@ -0,0 +1,5 @@ +#!/bin/bash + +instmods dasd_mod dasd_eckd_mod dasd_fba_mod dasd_diag_mod + + diff --git a/modules.d/95dasd_mod/parse-dasd.sh b/modules.d/95dasd_mod/parse-dasd.sh new file mode 100755 index 0000000..6902eeb --- /dev/null +++ b/modules.d/95dasd_mod/parse-dasd.sh @@ -0,0 +1,7 @@ +[ -d /etc/modprobe.d ] || mkdir /etc/modprobe.d + +dasd_arg=$(getarg rd_DASD_MOD=) +if [ -n "$dasd_arg" ]; then + echo "options dasd_mod dasd=$dasd_arg" >> /etc/modprobe.d/dasd.conf +fi +unset dasd_arg |