]> ##LCD_Manager ###&version; - Add libhid and option for mdm166a on the drop down. ###2024.11.21 - Update lcdproc package to include additional drivers. ###2023.11.07 - Add screen size option to settings. ###2023.04.08 - Initial Package. # Check to see if new install. if [ ! -d "/boot/config/plugins/&name;" ] then mkdir "/boot/config/plugins/&name;" fi &gitURL;/lcdproc.20241121.tgz &gitURL;/libhid-0.2.16-x86_64-2_slack.txz "&gitURL;/&name;-&version;.txz" &md5; echo "Removing previous versons now upgrade has completed." echo # Remove old 'bundle' files. rm -f $(ls &packages;/&name;*.txz 2>/dev/null | grep -v '&version;') #!/bin/bash # Copy configuration files to tmp file system. /usr/local/emhttp/plugins/&name;/scripts/copy_config.sh 2>/dev/null # Remove the background start script. rm -f /tmp/start_lcd_manager 2>/dev/null # Define Functions #Define Variables KERNEL_V="$(uname -r)" PACKAGE="usbip" DL_URL="https://github.com/ich777/unraid-plugins-repo/releases/download/$KERNEL_V" # Install the plugin bundle. # Create plugin directory mkdir /boot/config/plugins/&name; 2>/dev/null mkdir /usr/local/emhttp/plugins/&name; 2>/dev/null mkdir -p /tmp/&name;/config 2>/dev/null # Adjust plugin permissions. chmod 755 -R /usr/local/emhttp/plugins/&name; 2>/dev/null # Fix permissions of executable files chmod +x /usr/local/emhttp/plugins/&name;/scripts/* /usr/local/emhttp/plugins/&name;/event/* # Create a symlink to USB_Manager scripts. ln -sf /usr/local/emhttp/plugins/&name;/scripts/rc.lcd_manager /usr/local/sbin # Copy Config to tmp and load modules. at -M -f /tmp/start_lcd_manager now 2>/dev/null echo echo "-----------------------------------------------------------" echo " &name; has been installed." echo " " echo " Copyright 2016-2020, &author;" echo " Version: &version;" echo "" echo "-----------------------------------------------------------" echo #Define Variables # Remove installed packages find "&packages;/" -type f -iname "*.txz" -delete rm -f /tmp/plugins/&name;.plg rm -r /tmp/&name; # Remove all plugin files from emhttp. removepkg &packages;/&name;-&version;.txz #removepkg "&packages;/&name;/packages/${KERNEL_V%%-*}/${PACKAGE}-1.txz" #depmod -a > /dev/null echo echo "-----------------------------------------------------------" echo " &name; has been uninstalled." echo "-----------------------------------------------------------" echo