void-packages/srcpkgs/dracut/patches/network_install_grep.patch

22 lines
670 B
Diff

--- modules.d/40network/module-setup.sh 2017-08-11 13:44:06.000000000 +0200
+++ modules.d/40network/module-setup.sh 2017-12-12 19:47:35.691067368 +0100
@@ -4,7 +4,7 @@
check() {
local _program
- require_binaries ip dhclient || return 1
+ require_binaries ip dhclient sed awk grep || return 1
require_any_binary arping arping2 || return 1
return 255
@@ -24,7 +24,7 @@
# called by dracut
install() {
local _arch _i _dir
- inst_multiple ip dhclient sed awk
+ inst_multiple ip dhclient sed awk grep
inst_multiple -o arping arping2
strstr "$(arping 2>&1)" "ARPing 2" && mv "$initdir/bin/arping" "$initdir/bin/arping2"