aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--functions12
1 files changed, 6 insertions, 6 deletions
diff --git a/functions b/functions
index fee1765..e8ff7b8 100644
--- a/functions
+++ b/functions
@@ -357,14 +357,14 @@ print_welcome() {
load_modules() {
local rc=0
- /usr/lib/systemd/systemd-modules-load &>/dev/null
- rc=$?
-
- if (( ${#MODULES[*]} )); then
- modprobe -ab "${MODULES[@]}"
- (( rc += $? ))
+ if [[ $MODULES ]]; then
+ /usr/lib/systemd/arch-modules-load
+ rc=$?
fi
+ /usr/lib/systemd/systemd-modules-load
+ (( rc+=$? ))
+
return $rc
}