From: David Dillow Date: Mon, 1 Jun 2009 23:17:48 +0000 (-0400) Subject: cleanup shebangs in sourced scripts X-Git-Tag: 0.1~137 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92997caf35387470d6674529fecf63e28e767ffc;p=platform%2Fupstream%2Fdracut.git cleanup shebangs in sourced scripts All of the scripts are sourced, so there is no need to have will pick up on the .sh extension. --- diff --git a/modules.d/95nbd/nbd-netroot.sh b/modules.d/95nbd/nbd-netroot.sh index 74b3da8..20f4f09 100755 --- a/modules.d/95nbd/nbd-netroot.sh +++ b/modules.d/95nbd/nbd-netroot.sh @@ -1,5 +1,3 @@ -#!/bin/sh # for highlighting - if [ "$root" = "dhcp" ]; then if [ -n "$new_root_path" -a -z "${new_root_path%%nbd:*}" ]; then root="$new_root_path" diff --git a/modules.d/95nbd/parse-nbdroot.sh b/modules.d/95nbd/parse-nbdroot.sh index 4bedaab..84d1c23 100755 --- a/modules.d/95nbd/parse-nbdroot.sh +++ b/modules.d/95nbd/parse-nbdroot.sh @@ -1,5 +1,3 @@ -#!/bin/dash - # It'd be nice if this could share rules with 99-block.sh, but since # the kernel side adds nbd{1..16} when the module is loaded -- before # they are associated with a server -- we cannot use the udev add rule diff --git a/modules.d/95nfs/nfs-netroot.sh b/modules.d/95nfs/nfs-netroot.sh index ac72163..0591a31 100755 --- a/modules.d/95nfs/nfs-netroot.sh +++ b/modules.d/95nfs/nfs-netroot.sh @@ -1,5 +1,3 @@ -#!/bin/sh # for highlighting - # If we're auto-detecting our root type from DHCP, see if this looks like # an NFS root option. As the variety of root-path formats is large, validate # that the number of colons match what we expect, and our glob didn't diff --git a/modules.d/95nfs/nfsroot-cleanup.sh b/modules.d/95nfs/nfsroot-cleanup.sh index b8f3a2f..4bfdd34 100644 --- a/modules.d/95nfs/nfsroot-cleanup.sh +++ b/modules.d/95nfs/nfsroot-cleanup.sh @@ -1,5 +1,3 @@ -#!/bin/sh - pid=$(pidof rpc.statd) [ -n "$pid" ] && kill $pid diff --git a/modules.d/95nfs/parse-nfsroot.sh b/modules.d/95nfs/parse-nfsroot.sh index 5201e4b..c2ecf4e 100755 --- a/modules.d/95nfs/parse-nfsroot.sh +++ b/modules.d/95nfs/parse-nfsroot.sh @@ -1,5 +1,3 @@ -#!/bin/bash - # We're 90-nfs.sh to catch root=/dev/nfs # # Preferred format: diff --git a/modules.d/95rootfs-block/block-genrules.sh b/modules.d/95rootfs-block/block-genrules.sh index 5c3f957..d6924c8 100755 --- a/modules.d/95rootfs-block/block-genrules.sh +++ b/modules.d/95rootfs-block/block-genrules.sh @@ -1,5 +1,3 @@ -#!/bin/bash # for highlighting - if [ "${root%%:*}" = "block" ]; then ( printf 'KERNEL=="%s", RUN+="/bin/mount -t %s -o %s %s %s"\n' \ diff --git a/modules.d/95rootfs-block/parse-block.sh b/modules.d/95rootfs-block/parse-block.sh index 4b6ecfa..6dac7c1 100755 --- a/modules.d/95rootfs-block/parse-block.sh +++ b/modules.d/95rootfs-block/parse-block.sh @@ -1,5 +1,3 @@ -#!/bin/bash # for highlighting - case "$root" in block:LABEL=*|LABEL=*) root="${root#block:}" diff --git a/modules.d/95rootfs-block/parse-root-opts.sh b/modules.d/95rootfs-block/parse-root-opts.sh index dc0ae6d..7fc4f47 100755 --- a/modules.d/95rootfs-block/parse-root-opts.sh +++ b/modules.d/95rootfs-block/parse-root-opts.sh @@ -1,5 +1,3 @@ -#!/bin/bash # for highlighting - root=$(getarg root=) if rflags="$(getarg rootflags=)"; then