network: don't use "ifup -m"
[dracut.git] / modules.d / 02caps / module-setup.sh
blob01327c9aedb5fba0e3d08901ce6871720dbd4fa9
1 #!/bin/bash
3 # called by dracut
4 check() {
5 require_binaries capsh
8 # called by dracut
9 depends() {
10 return 0
13 # called by dracut
14 install() {
15 if ! dracut_module_included "systemd"; then
16 inst_hook pre-pivot 00 "$moddir/caps.sh"
17 inst $(type -P capsh 2>/dev/null) /usr/sbin/capsh
18 # capsh wants bash and we need bash also
19 inst /bin/bash
20 else
21 dwarning "caps: does not work with systemd in the initramfs"