mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
busybox: allow customizing suspend-modules.conf
This commit is contained in:
parent
83bd69f6bf
commit
1c90c1d946
@ -3,8 +3,18 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
# 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
|
. /etc/suspend-modules.conf
|
||||||
|
|
||||||
|
if [ -n "${custom_modules}" ]; then
|
||||||
|
SUSPEND_MODULES="${SUSPEND_MODULES} ${custom_modules}"
|
||||||
|
fi
|
||||||
|
|
||||||
modunload()
|
modunload()
|
||||||
{
|
{
|
||||||
local MOD D C USED MODS I
|
local MOD D C USED MODS I
|
||||||
|
Loading…
x
Reference in New Issue
Block a user