network: don't use "ifup -m"
[dracut.git] / modules.d / 00bash / module-setup.sh
blob6dc73cfd4157ed292179a81e27be2a3e659fb1a0
1 #!/bin/bash
3 # called by dracut
4 check() {
5 require_binaries /bin/bash
8 # called by dracut
9 depends() {
10 return 0
13 # called by dracut
14 install() {
15 # If another shell is already installed, do not use bash
16 [[ -x $initdir/bin/sh ]] && return
18 # Prefer bash as /bin/sh if it is available.
19 inst /bin/bash && ln -sf bash "${initdir}/bin/sh"