]> ##&name; ###&version; 23.12.2020 - initial release. # Remove emhttp files so we can re-install. rm -rf /boot/extra/usbip.txz 2>/dev/null "&gitURL;/&name;-&version;.txz" &MD5; # Install the plugin bundle. # Create plugin directory mkdir /boot/config/plugins/&name; 2>/dev/null # Remove old packages #find "&packages;/" -type f -iname "*.txz" -delete # Install the 'package'. installpkg &packages;/&name;-&version;.txz # Adjust plugin permissions. chmod 755 -R /usr/local/emhttp/plugins/&name; 2>/dev/null # Clean out old plugin packages find /boot/config/plugins/&name; -maxdepth 1 -type f -iname "*.t*z" -delete find &packages; -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete find &packages; -type f -iname "&name;*.md5" ! -iname "*&version;*" -delete echo "" echo "-----------------------------------------------------------" echo " &name; has been installed." echo " " echo " Copyright 2016-2020, &author;" echo " Version: &version;" echo "" echo "-----------------------------------------------------------" echo "" # Remove installed packages find "&packages;/" -type f -iname "*.txz" -delete rm -f /tmp/plugins/&name;.plg echo "" echo "-----------------------------------------------------------" echo " &name; has been uninstalled." echo "-----------------------------------------------------------" echo ""