network: don't use "ifup -m"
[dracut.git] / modules.d / 05busybox / module-setup.sh
blob14d401c243f5bb1a9641b0fbae8eafbd5f1f3f33
1 #!/bin/bash
3 # called by dracut
4 check() {
5 require_binaries busybox || return 1
7 return 255
10 # called by dracut
11 depends() {
12 return 0
15 # called by dracut
16 install() {
17 local _i _progs _path _busybox
18 _busybox=$(type -P busybox)
19 inst $_busybox /usr/bin/busybox
20 for _i in $($_busybox | sed -ne '1,/Currently/!{s/,//g; s/busybox//g; p}')
22 _progs="$_progs $_i"
23 done
25 # FIXME: switch_root should be in the above list, but busybox version hangs
26 # (using busybox-1.15.1-7.fc14.i686 at the time of writing)
28 for _i in $_progs; do
29 _path=$(find_binary "$_i")
30 [ -z "$_path" ] && continue
31 ln_r /usr/bin/busybox $_path
32 done