24 lines
387 B
Bash
Executable File
24 lines
387 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# called by dracut
|
|
depends() {
|
|
echo "network-legacy"
|
|
return 0
|
|
}
|
|
|
|
# called by dracut
|
|
installkernel() {
|
|
return 0
|
|
}
|
|
|
|
# called by dracut
|
|
install() {
|
|
local _arch _i _dir
|
|
|
|
inst_script "$moddir/netroot.sh" "/sbin/netroot"
|
|
inst_simple "$moddir/net-lib.sh" "/lib/net-lib.sh"
|
|
inst_hook pre-udev 50 "$moddir/ifname-genrules.sh"
|
|
|
|
dracut_need_initqueue
|
|
}
|