diff options
author | Juan RP <xtraeme@gmail.com> | 2014-11-24 14:28:54 +0100 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2014-11-24 14:28:54 +0100 |
commit | 3d422cba5eb632cc8dadefa4c116565ed71da64f (patch) | |
tree | 3c4c128532d82f2978a5dc7d6e85a55f3ddf6b6f | |
parent | b1d961cd745c2307d285681cd0ecae144f5f3baa (diff) | |
download | runit-void-3d422cba5eb632cc8dadefa4c116565ed71da64f.tar.gz runit-void-3d422cba5eb632cc8dadefa4c116565ed71da64f.tar.xz runit-void-3d422cba5eb632cc8dadefa4c116565ed71da64f.zip |
modules-load: set PATH, otherwise it could fail to run modprobe.
-rwxr-xr-x | modules-load | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules-load b/modules-load index 401727b..35e73b8 100755 --- a/modules-load +++ b/modules-load @@ -1,6 +1,8 @@ #!/bin/sh # modules-load [-n] [-v] - modules-load.d(5) compatible kernel module loader +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 |