mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-03-09 15:40:13 +00:00
fix: fan curve, lcd firmware, NICs, and README.md
* Make improvements to README.md * Do some fan curve adjustments to try and reduce fan noise * add dfu-util so ulcmd can flash the touch screen if there's a firmware version mismatch * Move NIC management away from cloud-init to OMV * Ensure OMV has hostname set correctly
This commit is contained in:
parent
9c08f287fc
commit
c259d223bf
9 changed files with 75 additions and 25 deletions
|
@ -101,7 +101,7 @@ system_info:
|
|||
groups: [adm, audio, cdrom, dialout, dip, floppy, netdev, plugdev, sudo, video]
|
||||
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
|
||||
shell: /bin/bash
|
||||
# systemd networking for omv
|
||||
# systemd networking
|
||||
network:
|
||||
renderers: ['networkd']
|
||||
activators: ['networkd']
|
||||
|
|
|
@ -8,18 +8,14 @@ datasource:
|
|||
#cloud-config
|
||||
hostname: unvr-nas
|
||||
|
||||
# Setup cmds for open media vault
|
||||
# Setup for OMV
|
||||
runcmd:
|
||||
- DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true apt-get install -f -y
|
||||
- omv-confdbadm populate
|
||||
- omv-salt deploy run hosts
|
||||
- usermod -a -G _ssh debian
|
||||
- rm -rf /etc/systemd/network/first-boot-*.network
|
||||
- omv-salt deploy run hosts systemd-networkd
|
||||
- systemctl restart systemd-networkd
|
||||
|
||||
# Setup network for both nics, needed so SFP+ works
|
||||
# We will have OMV manage the nics
|
||||
network:
|
||||
version: 2
|
||||
ethernets:
|
||||
enp0s1:
|
||||
dhcp4: true
|
||||
enp0s2:
|
||||
dhcp4: true
|
||||
config: disabled
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
[Match]
|
||||
Name=enp0s1
|
||||
|
||||
[Network]
|
||||
DHCP=ipv4
|
||||
LinkLocalAddressing=ipv6
|
||||
IPv6AcceptRA=yes
|
||||
IPv6PrivacyExtensions=yes
|
||||
|
||||
[DHCP]
|
||||
RouteMetric=100
|
||||
UseMTU=true
|
||||
UseDomains=true
|
|
@ -0,0 +1,13 @@
|
|||
[Match]
|
||||
Name=enp0s2
|
||||
|
||||
[Network]
|
||||
DHCP=ipv4
|
||||
LinkLocalAddressing=ipv6
|
||||
IPv6AcceptRA=yes
|
||||
IPv6PrivacyExtensions=yes
|
||||
|
||||
[DHCP]
|
||||
RouteMetric=100
|
||||
UseMTU=true
|
||||
UseDomains=true
|
|
@ -79,9 +79,13 @@ def __calculate_fan_speed(temp):
|
|||
fanspeed = 25
|
||||
case _ if temp >= 40 and temp < 50:
|
||||
fanspeed = 75
|
||||
case _ if temp >= 50 and temp < 60:
|
||||
fanspeed = 150
|
||||
case _ if temp >= 60 and temp < 70:
|
||||
case _ if temp >= 50 and temp < 55:
|
||||
fanspeed = 100
|
||||
case _ if temp >= 55 and temp < 60:
|
||||
fanspeed = 130
|
||||
case _ if temp >= 60 and temp < 65:
|
||||
fanspeed = 160
|
||||
case _ if temp >= 65 and temp < 70:
|
||||
fanspeed = 200
|
||||
case _:
|
||||
fanspeed = 255
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue