repo.or.cz
/
dracut.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
network: don't use "ifup -m"
[dracut.git]
/
modules.d
/
00bash
/
module-setup.sh
blob
6dc73cfd4157ed292179a81e27be2a3e659fb1a0
1
#!/bin/bash
2
3
# called by dracut
4
check
() {
5
require_binaries
/
bin
/
bash
6
}
7
8
# called by dracut
9
depends
() {
10
return
0
11
}
12
13
# called by dracut
14
install
() {
15
# If another shell is already installed, do not use bash
16
[[
-x
$initdir
/
bin
/
sh
]] &&
return
17
18
# Prefer bash as /bin/sh if it is available.
19
inst
/
bin
/
bash
&&
ln
-sf
bash
"
${initdir}
/bin/sh"
20
}
21