mirror of
https://github.com/unraid/webgui.git
synced 2026-01-08 18:50:10 -06:00
scripts dutchification - batch 1
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# /etc/rc.d/rc.modules.local
|
||||
|
||||
#
|
||||
# script: rc.modules.local
|
||||
#
|
||||
# The Linux kernel source is the best place to look for documentation
|
||||
# for the many available kernel modules. This can be found under
|
||||
# /usr/src/linux-$VERSION/Documentation/.
|
||||
@@ -12,16 +12,21 @@
|
||||
# Note that you could also create/edit rc.modules-$version if you
|
||||
# only wanted specific modules loaded for particular kernels.
|
||||
|
||||
#/sbin/modprobe tun # Universal TUN/TAP device driver
|
||||
#/sbin/modprobe sg # Generic SCSI support for SATA DVD-RW
|
||||
#/sbin/modprobe tun # Universal TUN/TAP device driver
|
||||
#/sbin/modprobe sg # Generic SCSI support for SATA DVD-RW
|
||||
|
||||
# limetech - set default zfs arc size to 1/8 total memory
|
||||
# (MemTotal is reported in units of 1024, SIZE needs to be bytes)
|
||||
SIZE=$(awk '/MemTotal/{print $(NF-1)*128}' /proc/meminfo)
|
||||
echo "# limetech - Default ARC size is MemTotal/8 (in bytes)" > /etc/modprobe.d/zfs.conf
|
||||
echo "options zfs zfs_arc_max=$SIZE" >> /etc/modprobe.d/zfs.conf
|
||||
# LimeTech - set default zfs arc size to 1/8 total memory
|
||||
# Bergware - modified for Unraid OS, October 2023
|
||||
|
||||
# limetech - grab any user defined module conf files
|
||||
if [ -d /boot/config/modprobe.d ]; then
|
||||
/usr/bin/find /boot/config/modprobe.d -type f -exec install -p -m 0644 {} /etc/modprobe.d \;
|
||||
# MemTotal is reported in units of 1024, SIZE needs to be bytes
|
||||
SIZE="$(awk '/MemTotal/{print $(NF-1)*128}' /proc/meminfo)"
|
||||
CONF="/etc/modprobe.d/zfs.conf"
|
||||
|
||||
echo "# LimeTech - Default ARC size is MemTotal/8 (in bytes)" >$CONF
|
||||
echo "options zfs zfs_arc_max=$SIZE" >>$CONF
|
||||
|
||||
# LimeTech - grab any user defined module conf files
|
||||
MODPROBE="/boot/config/modprobe.d"
|
||||
if [[ -d $MODPROBE ]]; then
|
||||
find $MODPROBE -type f -exec install -p -m 0644 "{}" /etc/modprobe.d \;
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user