diff options
author | Colin Guthrie <colin@mageia.org> | 2013-01-06 17:15:38 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2013-01-06 17:15:38 +0000 |
commit | 3cd724032b2ea29b5df156327712b0e4f9559e96 (patch) | |
tree | 1819c72b93782f334134dced82102e6e60ed52e7 /systemd | |
parent | 956d29796f6be1ced6723d377e2b08fafbe3a48a (diff) | |
download | initscripts-3cd724032b2ea29b5df156327712b0e4f9559e96.tar initscripts-3cd724032b2ea29b5df156327712b0e4f9559e96.tar.gz initscripts-3cd724032b2ea29b5df156327712b0e4f9559e96.tar.bz2 initscripts-3cd724032b2ea29b5df156327712b0e4f9559e96.tar.xz initscripts-3cd724032b2ea29b5df156327712b0e4f9559e96.zip |
Prevent failure exit code leakage.
Only happens when /etc/rc.modules doesn't exist.
mga#7489
Diffstat (limited to 'systemd')
-rwxr-xr-x | systemd/fedora-loadmodules | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/systemd/fedora-loadmodules b/systemd/fedora-loadmodules index 4fd167c4..5925bdf7 100755 --- a/systemd/fedora-loadmodules +++ b/systemd/fedora-loadmodules @@ -2,7 +2,9 @@ # Load other user-defined modules for file in /etc/sysconfig/modules/*.modules ; do - [ -x $file ] && $file + if [ -x $file ]; then + $file + fi done # Load modules (for backward compatibility with VARs) |