mirror of
https://github.com/unraid/webgui.git
synced 2026-02-20 08:09:23 -06:00
Update rc.S.cont
only execute rc.modules if unraidsafemode is not set
This commit is contained in:
@@ -15,10 +15,15 @@
|
||||
# LimeTech - bind selected devices to vfio-pci
|
||||
/usr/local/sbin/vfio-pci 1>/var/log/vfio-pci 2>/var/log/vfio-pci-errors
|
||||
|
||||
# Run the kernel module script. This updates the module dependencies and
|
||||
# also supports manually loading kernel modules through rc.modules.local.
|
||||
if [[ -x /etc/rc.d/rc.modules ]]; then
|
||||
/etc/rc.d/rc.modules
|
||||
# If "unraidsafemode" indicated, skip installing driver packages
|
||||
if [[ -f /boot/unraidsafemode ]] || grep -wq unraidsafemode /proc/cmdline; then
|
||||
log "Unraid Safe Mode (unraidsafemode) has been set, skip driver installation"
|
||||
else
|
||||
# Run the kernel module script. This updates the module dependencies and
|
||||
# also supports manually loading kernel modules through rc.modules.local.
|
||||
if [[ -x /etc/rc.d/rc.modules ]]; then
|
||||
/etc/rc.d/rc.modules
|
||||
fi
|
||||
fi
|
||||
|
||||
# Initialize udev to manage /dev entries and hotplugging.
|
||||
|
||||
Reference in New Issue
Block a user