summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Seewer <philippe.seewer@bfh.ch>2009-11-27 11:57:14 +0100
committerHarald Hoyer <harald@redhat.com>2009-11-27 14:07:21 +0100
commit2e6b98c7f61f8f5759cbbf6c7d25a405daa9ae11 (patch)
treef7a18782203c93bb2e6ff0585e261f69869645a9
parenta8dbfbb8cec16b50f22921f01c02dcc857255a30 (diff)
All module scripts should have a shebang
-rwxr-xr-xmodules.d/90crypt/crypt-cleanup.sh1
-rwxr-xr-xmodules.d/90crypt/parse-crypt.sh1
-rwxr-xr-xmodules.d/90dmsquash-live/parse-dmsquash-live.sh1
-rwxr-xr-xmodules.d/90lvm/lvm-cleanup.sh1
-rwxr-xr-xmodules.d/90mdraid/mdraid-cleanup.sh1
-rwxr-xr-xmodules.d/95dasd/parse-dasd.sh1
-rwxr-xr-xmodules.d/95dasd_mod/parse-dasd-mod.sh1
-rwxr-xr-xmodules.d/95iscsi/mount-lun.sh1
-rwxr-xr-xmodules.d/95zfcp/parse-zfcp.sh2
-rwxr-xr-xmodules.d/95znet/parse-ccw.sh1
10 files changed, 10 insertions, 1 deletions
diff --git a/modules.d/90crypt/crypt-cleanup.sh b/modules.d/90crypt/crypt-cleanup.sh
index 1a47d47..3959a07 100755
--- a/modules.d/90crypt/crypt-cleanup.sh
+++ b/modules.d/90crypt/crypt-cleanup.sh
@@ -1,3 +1,4 @@
+#!/bin/sh
# close everything which is not busy
for i in /dev/mapper/luks-*; do
cryptsetup luksClose $i >/dev/null 2>&1
diff --git a/modules.d/90crypt/parse-crypt.sh b/modules.d/90crypt/parse-crypt.sh
index 789bbb0..5c2a94a 100755
--- a/modules.d/90crypt/parse-crypt.sh
+++ b/modules.d/90crypt/parse-crypt.sh
@@ -1,3 +1,4 @@
+#!/bin/sh
if getarg rd_NO_LUKS; then
info "rd_NO_LUKS: removing cryptoluks activation"
rm -f /etc/udev/rules.d/70-luks.rules
diff --git a/modules.d/90dmsquash-live/parse-dmsquash-live.sh b/modules.d/90dmsquash-live/parse-dmsquash-live.sh
index 40ca016..646da36 100755
--- a/modules.d/90dmsquash-live/parse-dmsquash-live.sh
+++ b/modules.d/90dmsquash-live/parse-dmsquash-live.sh
@@ -1,3 +1,4 @@
+#!/bin/sh
# live images are specified with
# root=live:backingdev
diff --git a/modules.d/90lvm/lvm-cleanup.sh b/modules.d/90lvm/lvm-cleanup.sh
index 6efd911..f0b4037 100755
--- a/modules.d/90lvm/lvm-cleanup.sh
+++ b/modules.d/90lvm/lvm-cleanup.sh
@@ -1,2 +1,3 @@
+#!/bin/sh
# stop everything which is not busy
lvm vgchange -a n >/dev/null 2>&1
diff --git a/modules.d/90mdraid/mdraid-cleanup.sh b/modules.d/90mdraid/mdraid-cleanup.sh
index dc3b86f..f4b7810 100755
--- a/modules.d/90mdraid/mdraid-cleanup.sh
+++ b/modules.d/90mdraid/mdraid-cleanup.sh
@@ -1,3 +1,4 @@
+#!/bin/sh
# stop everything which is not busy
for i in /dev/md* /dev/md/*; do
[ -b $i ] || continue
diff --git a/modules.d/95dasd/parse-dasd.sh b/modules.d/95dasd/parse-dasd.sh
index af58b31..47bcfe4 100755
--- a/modules.d/95dasd/parse-dasd.sh
+++ b/modules.d/95dasd/parse-dasd.sh
@@ -1,3 +1,4 @@
+#!/bin/sh
for dasd_arg in $(getargs 'rd_DASD='); do
(
IFS=","
diff --git a/modules.d/95dasd_mod/parse-dasd-mod.sh b/modules.d/95dasd_mod/parse-dasd-mod.sh
index 023c9ad..63a7da4 100755
--- a/modules.d/95dasd_mod/parse-dasd-mod.sh
+++ b/modules.d/95dasd_mod/parse-dasd-mod.sh
@@ -1,3 +1,4 @@
+#!/bin/sh
[ -d /etc/modprobe.d ] || mkdir /etc/modprobe.d
dasd_arg=$(getarg rd_DASD_MOD=)
diff --git a/modules.d/95iscsi/mount-lun.sh b/modules.d/95iscsi/mount-lun.sh
index ff8d4d0..d0b6458 100755
--- a/modules.d/95iscsi/mount-lun.sh
+++ b/modules.d/95iscsi/mount-lun.sh
@@ -1,3 +1,4 @@
+#!/bin/sh
if [ -z $iscsi_lun ]; then
iscsi_lun=0
fi
diff --git a/modules.d/95zfcp/parse-zfcp.sh b/modules.d/95zfcp/parse-zfcp.sh
index 4f502c2..7fcee87 100755
--- a/modules.d/95zfcp/parse-zfcp.sh
+++ b/modules.d/95zfcp/parse-zfcp.sh
@@ -1,4 +1,4 @@
-
+#!/bin/sh
getarg rd_NO_ZFCPCONF && rm /etc/zfcp.conf
for zfcp_arg in $(getargs 'rd_ZFCP='); do
diff --git a/modules.d/95znet/parse-ccw.sh b/modules.d/95znet/parse-ccw.sh
index c8b257f..846c853 100755
--- a/modules.d/95znet/parse-ccw.sh
+++ b/modules.d/95znet/parse-ccw.sh
@@ -1,3 +1,4 @@
+#!/bin/sh
for ccw_arg in $(getargs 'rd_CCW='); do
echo $ccw_arg >> /etc/ccw.conf
done