Merge pull request #3740 from lbschenkel/suspend-customize

busybox: allow customizing suspend-modules.conf
This commit is contained in:
MilhouseVH 2019-08-07 17:03:00 +01:00 committed by GitHub
commit 67e812c3e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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