]> ##&name; ###&version; - First release as File Activity (Next). ###2025.12.05 - Initial release under the new restrictive license. "&gitURL;/&name;-&version;.tgz" &MD5; # The previous fle activity plugin cannot be installed. if [ -f /boot/config/plugins/&plugin;.plg ] ; then echo "" echo "-----------------------------------------------------------" echo " &name; has not been installed!" echo "" echo " The previous File Activity plugin is installed." echo "" echo " You must uninstall the File Activity plugin" echo " before installing File Activity (Next)." echo "" echo "-----------------------------------------------------------" echo "" exit 1 fi # Stop File Activity inotify if it is running. if [ -x "/usr/local/emhttp/plugins/&plugin;/scripts/rc.&plugin;" ]; then # Stop file activity. /usr/local/emhttp/plugins/&plugin;/scripts/rc.&plugin; stop 2>/dev/null fi # Remove emhttp files so we can re-install. rm -rf /usr/local/emhttp/plugins/&plugin;/* 2>/dev/null # Remove old 'bundle' files. rm -f $(ls /boot/config/plugins/&plugin;/&name;*.tgz 2>/dev/null | grep -v '&version;') # Create plugin directory mkdir /boot/config/plugins/&plugin; 2>/dev/null # Install the 'bundle'. tar -xf /boot/config/plugins/&plugin;/&name;-&version;.tgz -C /usr/local/emhttp/plugins 2>/dev/null # Create disks file directory. mkdir /tmp/&plugin; 2>/dev/null echo "" echo "-----------------------------------------------------------" echo " &name; is installed." echo " Copyright 2017-2025, &author;" echo " Version: &version;" echo "-----------------------------------------------------------" echo "" # Stop file activity. /usr/local/emhttp/plugins/&plugin;/scripts/rc.&plugin; stop 2>/dev/null # Remove all plugin files. rm -rf /usr/local/emhttp/plugins/&plugin; 2>/dev/null echo "" echo "-----------------------------------------------------------" echo " &name; has been removed." echo " Version: &version;" echo "-----------------------------------------------------------" echo ""