From 1c90c1d94654cc3ca14748efdb3b6a7f4c20c632 Mon Sep 17 00:00:00 2001 From: Leonardo Brondani Schenkel Date: Sat, 3 Aug 2019 23:41:01 +0200 Subject: [PATCH] busybox: allow customizing suspend-modules.conf --- .../busybox/sleep.d.serial/99-suspend-modules.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/sysutils/busybox/sleep.d.serial/99-suspend-modules.sh b/packages/sysutils/busybox/sleep.d.serial/99-suspend-modules.sh index 7e907c92c9..37545ee60a 100755 --- a/packages/sysutils/busybox/sleep.d.serial/99-suspend-modules.sh +++ b/packages/sysutils/busybox/sleep.d.serial/99-suspend-modules.sh @@ -3,8 +3,18 @@ # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) +if [ -f /storage/.config/suspend-modules.conf ]; then + . /storage/.config/suspend-modules.conf + custom_modules="${SUSPEND_MODULES}" + SUSPEND_MODULES="" +fi + . /etc/suspend-modules.conf +if [ -n "${custom_modules}" ]; then + SUSPEND_MODULES="${SUSPEND_MODULES} ${custom_modules}" +fi + modunload() { local MOD D C USED MODS I