mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
linux: remove modules initscripts, port modules load to systemd
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
4173b15407
commit
7db6f515cb
@ -1,6 +0,0 @@
|
||||
# /etc/modules: force some kernel modules to be loaded at boot time.
|
||||
#
|
||||
# This file contains the names of kernel modules that should be loaded
|
||||
# at boot time, one per line. Lines beginning with "#" are ignored.
|
||||
|
||||
coretemp
|
@ -1,35 +0,0 @@
|
||||
################################################################################
|
||||
# Copyright (C) 2009-2010 OpenELEC.tv
|
||||
# http://www.openelec.tv
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
#
|
||||
# load modules
|
||||
#
|
||||
# runlevels: openelec, textmode
|
||||
|
||||
(
|
||||
progress "loading kernel modules"
|
||||
|
||||
IFS='
|
||||
'
|
||||
for module in `cat /etc/modules|grep "^[^#]"`; do
|
||||
eval "modprobe $module" >/dev/null 2>&1
|
||||
done
|
||||
|
||||
)&
|
@ -35,9 +35,6 @@ mkdir -p $INSTALL/lib/modules/$VER
|
||||
[ -d $PKG_BUILD/modules/lib/firmware ] && \
|
||||
cp -rf $PKG_BUILD/modules/lib/firmware/* $INSTALL/lib/firmware || true
|
||||
|
||||
mkdir -p $INSTALL/etc
|
||||
cp $PKG_DIR/config/modules $INSTALL/etc
|
||||
|
||||
mkdir -p $INSTALL/etc/modprobe.d
|
||||
cp $PKG_DIR/modprobe.d/*.conf $INSTALL/etc/modprobe.d
|
||||
|
||||
|
3
packages/linux/modules-load.d/coretemp.conf
Normal file
3
packages/linux/modules-load.d/coretemp.conf
Normal file
@ -0,0 +1,3 @@
|
||||
# load coretemp kernel module
|
||||
coretemp
|
||||
|
Loading…
x
Reference in New Issue
Block a user