summary refs log tree commit diff
diff options
context:
space:
mode:
authorneeshy <neeshy@tfwno.gf>2019-04-02 14:38:10 -0400
committerLeah Neukirchen <leah@vuxu.org>2021-01-17 22:54:41 +0100
commit13b21ac1dfdb098a785e897618b25f7cffddc6a5 (patch)
tree30e892fb0a4c9d127a334f3dcd79d6f580844172
parent8dec495201ed0ebb7208f9b4a5386938a7c9147e (diff)
downloadrunit-void-13b21ac1dfdb098a785e897618b25f7cffddc6a5.tar.gz
runit-void-13b21ac1dfdb098a785e897618b25f7cffddc6a5.tar.xz
runit-void-13b21ac1dfdb098a785e897618b25f7cffddc6a5.zip
Use global substitution on commas in modules-load
Without this only the first occurrence is replaced
-rwxr-xr-xmodules-load2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-load b/modules-load
index 35e73b8..b38f3e0 100755
--- a/modules-load
+++ b/modules-load
@@ -5,7 +5,7 @@ export PATH=/bin:/sbin
 
 {
 # Parameters passed as modules-load= or rd.modules-load= in kernel command line.
-sed -nr 's/,/\n/;s/(.* |^)(rd\.)?modules-load=([^ ]*).*/\3/p' /proc/cmdline
+sed -nr 's/,/\n/g;s/(.* |^)(rd\.)?modules-load=([^ ]*).*/\3/p' /proc/cmdline
 
 # Find files /{etc,run,usr/lib}/modules-load.d/*.conf in that order.
 find -L /etc/modules-load.d /run/modules-load.d /usr/lib/modules-load.d \