From: Victor Lowther Date: Fri, 6 Mar 2009 20:27:03 +0000 (-0600) Subject: Make dash module use new check functionality X-Git-Tag: 0.1~328 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ca2254668fc10ca3a0e9ac6eb97762a3b26b1bf;p=thirdparty%2Fdracut.git Make dash module use new check functionality --- diff --git a/modules.d/00dash/check b/modules.d/00dash/check new file mode 100755 index 000000000..8e12d07e6 --- /dev/null +++ b/modules.d/00dash/check @@ -0,0 +1,2 @@ +#!/bin/sh +[ -x /bin/dash ] \ No newline at end of file diff --git a/modules.d/00dash/install b/modules.d/00dash/install index 8af1e7c4f..9ee655ad2 100755 --- a/modules.d/00dash/install +++ b/modules.d/00dash/install @@ -1,6 +1,4 @@ #!/bin/bash # Prefer dash as /bin/sh if it is available. -if [[ -f /bin/dash ]]; then - inst /bin/dash - ln -sf /bin/dash "${initdir}/bin/sh" -fi \ No newline at end of file +inst /bin/dash +ln -sf /bin/dash "${initdir}/bin/sh" \ No newline at end of file