summaryrefslogtreecommitdiff
path: root/modules.d/00dash
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2009-03-06 14:27:03 -0600
committerVictor Lowther <victor.lowther@gmail.com>2009-03-06 14:27:03 -0600
commit4ca2254668fc10ca3a0e9ac6eb97762a3b26b1bf (patch)
tree7a65d1e82a29a5b9fa0c7d357b3d50303d4f0d79 /modules.d/00dash
parent8d02da427b55d5f3804745018e6550bef92faaf2 (diff)
downloaddracut-4ca2254668fc10ca3a0e9ac6eb97762a3b26b1bf.tar.gz
dracut-4ca2254668fc10ca3a0e9ac6eb97762a3b26b1bf.tar.bz2
dracut-4ca2254668fc10ca3a0e9ac6eb97762a3b26b1bf.zip
Make dash module use new check functionality
Diffstat (limited to 'modules.d/00dash')
-rwxr-xr-xmodules.d/00dash/check2
-rwxr-xr-xmodules.d/00dash/install6
2 files changed, 4 insertions, 4 deletions
diff --git a/modules.d/00dash/check b/modules.d/00dash/check
new file mode 100755
index 00000000..8e12d07e
--- /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 8af1e7c4..9ee655ad 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