From: Philippe Seewer Date: Fri, 27 Nov 2009 10:57:14 +0000 (+0100) Subject: All module scripts should have a shebang X-Git-Tag: 003~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e6b98c7f61f8f5759cbbf6c7d25a405daa9ae11;p=thirdparty%2Fdracut.git All module scripts should have a shebang --- diff --git a/modules.d/90crypt/crypt-cleanup.sh b/modules.d/90crypt/crypt-cleanup.sh index 1a47d4726..3959a07d8 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 789bbb061..5c2a94a84 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 40ca01627..646da362b 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 6efd91190..f0b4037f5 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 dc3b86fe4..f4b7810eb 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 af58b3193..47bcfe4c2 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 023c9ad7c..63a7da46c 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 ff8d4d0b9..d0b645879 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 4f502c21e..7fcee8703 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 c8b257f86..846c85384 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