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