summary refs log tree commit diff
diff options
context:
space:
mode:
authorclassabbyamp <void@placeviolette.net>2023-04-13 00:00:07 -0400
committerclassabbyamp <5366828+classabbyamp@users.noreply.github.com>2023-04-13 11:53:42 -0400
commit1d453575469f396e1ca8dd5cc645e1af4e18dc8e (patch)
tree51c669c12466aab3fd9d6b36c7222d65dece39e7
parente9d35904c8d5802b623c1c015eb155d1affdfcdf (diff)
downloadrunit-void-1d453575469f396e1ca8dd5cc645e1af4e18dc8e.tar.gz
runit-void-1d453575469f396e1ca8dd5cc645e1af4e18dc8e.tar.xz
runit-void-1d453575469f396e1ca8dd5cc645e1af4e18dc8e.zip
core-services/01-static-devnodes: simplify parsing
fixes #82
-rw-r--r--core-services/01-static-devnodes.sh2
1 files changed, 1 insertions, 1 deletions
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