]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Make dash module use new check functionality
authorVictor Lowther <victor.lowther@gmail.com>
Fri, 6 Mar 2009 20:27:03 +0000 (14:27 -0600)
committerVictor Lowther <victor.lowther@gmail.com>
Fri, 6 Mar 2009 20:27:03 +0000 (14:27 -0600)
modules.d/00dash/check [new file with mode: 0755]
modules.d/00dash/install

diff --git a/modules.d/00dash/check b/modules.d/00dash/check
new file mode 100755 (executable)
index 0000000..8e12d07
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+[ -x /bin/dash ]
\ No newline at end of file
index 8af1e7c4f5de8131d997254162bb5ba558d72a0c..9ee655ad2ac04c9673f0c10ee46073815980fff5 100755 (executable)
@@ -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