From 1d453575469f396e1ca8dd5cc645e1af4e18dc8e Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Thu, 13 Apr 2023 00:00:07 -0400 Subject: core-services/01-static-devnodes: simplify parsing fixes #82 --- core-services/01-static-devnodes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-services/01-static-devnodes.sh b/core-services/01-static-devnodes.sh index 2bf15c8..1f24ccf 100644 --- a/core-services/01-static-devnodes.sh +++ b/core-services/01-static-devnodes.sh @@ -1,6 +1,6 @@ # Some kernel modules must be loaded before starting udev(7). # Load them by looking at the output of `kmod static-nodes`. -for f in $(kmod static-nodes 2>/dev/null|awk '/Module/ {print $2}'); do +for f in $(kmod static-nodes -f devname 2>/dev/null|cut -d' ' -f1); do modprobe -bq $f 2>/dev/null done -- cgit 1.4.1