summaryrefslogtreecommitdiffstats
path: root/hooks
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2008-03-16 10:55:51 +0100
committerThomas Bächler <thomas@archlinux.org>2008-03-16 10:55:51 +0100
commitc98f860009e05b4d3f10b914ade3a5fad1df6b24 (patch)
treec4f8062d5f52cd41d94bf08c38d2fc2d95c130eb /hooks
parent1f8eed5b46629c3e38207349b505251e3c0cde1c (diff)
downloadmkinitcpio-c98f860009e05b4d3f10b914ade3a5fad1df6b24.tar.gz
mkinitcpio-c98f860009e05b4d3f10b914ade3a5fad1df6b24.tar.xz
Fix various coding style issues
Diffstat (limited to 'hooks')
-rw-r--r--hooks/modload4
-rw-r--r--hooks/raid2
2 files changed, 3 insertions, 3 deletions
diff --git a/hooks/modload b/hooks/modload
index 41361c1..8bb9d1d 100644
--- a/hooks/modload
+++ b/hooks/modload
@@ -19,13 +19,13 @@ run_hook ()
for d in /sys/bus/scsi/devices/*; do
if [ -e "${d}/type" ]; then
read m < "${d}/type"
- case "$m" in
+ case "${m}" in
0) /sbin/modprobe -q sd_mod 2>&1 >/dev/null ;;
# this below is take from the Arch udev rules
1) read vendor < "${d}/vendor"
if [ "${vendor}" = "Onstream" ]; then
read model < "${d}/model"
- case "$model" in
+ case "${model}" in
ADR*) /sbin/modprobe -q st >/dev/null 2>&1;;
*) /sbin/modprobe -q osst >/dev/null 2>&1;;
esac
diff --git a/hooks/raid b/hooks/raid
index 8128cff..cd1a920 100644
--- a/hooks/raid
+++ b/hooks/raid
@@ -2,7 +2,7 @@
run_hook ()
{
#TODO scan for these somehow...
- /sbin/modprobe -aq linear multipath raid0 raid1 raid456 raid10>/dev/null 2>&1
+ /sbin/modprobe -aq linear multipath raid0 raid1 raid456 raid10 >/dev/null 2>&1
# md= can be specified multiple times. The simplistic commandline
# parsing does not handle this, so we will let mdassemble parse it
/bin/mdassemble ${CMDLINE}