nct6687-driver.plg aktualisiert
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<!DOCTYPE PLUGIN [
|
||||
<!ENTITY name "nct6687-driver">
|
||||
<!ENTITY author "ich777">
|
||||
<!ENTITY version "2025.04.25">
|
||||
<!ENTITY version "2025.05.12">
|
||||
<!ENTITY gitURL "https://github.com/&author;/unraid-&name;/raw/master">
|
||||
<!ENTITY pluginURL "&gitURL;/&name;.plg">
|
||||
<!ENTITY plugin "/boot/config/plugins/&name;">
|
||||
@@ -14,6 +14,9 @@
|
||||
|
||||
<CHANGES>
|
||||
|
||||
###2025.05.12
|
||||
- Prevent installation from NCT6683 module on boot
|
||||
|
||||
###2025.04.25
|
||||
- Blacklist NCT6683 module on installation
|
||||
|
||||
@@ -64,13 +67,16 @@ Source: https://github.com/Fred78290/nct6687d
|
||||
<FILE Run="/bin/bash">
|
||||
<INLINE>
|
||||
|
||||
#Check if NCT6683 module is blacklisted if not blacklist it
|
||||
if [ ! "$(grep "blacklist" /boot/config/modprobe.d/nct6683.conf 2>/dev/null)" ]; then
|
||||
#Check if NCT6683 module is blacklisted and installation is prevented if not blacklist it and prevent installation
|
||||
if [ ! -d /boot/config/modprobe.d ]; then
|
||||
mkdir -p /boot/config/modprobe.d
|
||||
fi
|
||||
if [ ! "$(grep "blacklist" /boot/config/modprobe.d/nct6683.conf 2>/dev/null)" ]; then
|
||||
echo "blacklist nct6683" >> /boot/config/modprobe.d/nct6683.conf
|
||||
fi
|
||||
if [ ! "$(grep "install nct6683 /bin/false" /boot/config/modprobe.d/nct6683.conf 2>/dev/null)" ]; then
|
||||
echo "install nct6683 /bin/false" >> /boot/config/modprobe.d/nct6683.conf
|
||||
fi
|
||||
|
||||
download() {
|
||||
#Download NCT6687d Drivers
|
||||
@@ -207,8 +213,9 @@ echo "-----------------------------------"
|
||||
# Remove plugin related files
|
||||
rm -rf &plugin; &emhttp;
|
||||
# Remove blacklist
|
||||
if [ "$(grep -v "blacklist" /boot/config/modprobe.d/nct6683.conf 2>/dev/null)" ]; then
|
||||
if [ "$(grep -vE "blacklist|/bin/false" /boot/config/modprobe.d/nct6683.conf 2>/dev/null)" ]; then
|
||||
sed -i '/blacklist nct6683/d' /boot/config/modprobe.d/nct6683.conf 2>/dev/null
|
||||
sed -i '/install nct6683 \/bin\/false/d' /boot/config/modprobe.d/nct6683.conf
|
||||
else
|
||||
rm -rf /boot/config/modprobe.d/nct6683.conf 2>/dev/null
|
||||
fi
|
||||
|
Reference in New Issue
Block a user