]> ### 2022-05-06 - Initial release - rip 0.13.1 &releaseURL; &releaseMD5URL; local_package_file_md5=$(/usr/bin/md5sum &plugin;/&name;-&version;.txz) remote_package_file_md5=$(/usr/bin/cat &name;-&version;.md5) if test $local_package_file_md5 != remote_package_file_md5 then echo "*** md5 of download package does not match - removing files and exiting ***" rm &plugin;/&name;-&version;.txz rm &name;-&version;.md5 exit 1 else echo "*** md5 check successful ***" fi file=$(/usr/bin/ls /boot/config/plugins/&name;/&name;*.txz | grep -v '&version;') if [ ! -z "$file" ] then filename=$(basename -- $file) previous="${filename%.*}" echo "*** previous version ${previous} found - uninstalling ***" removepkg $previous rm -f $file else echo "*** no previous version found - first time install ***" fi upgradepkg --install-new &plugin;/&name;-&version;.txz **rip** rip is a command-line deletion tool focused on safety, ergonomics, and performance. It favors a simple interface, and does not implement the xdg-trash spec or attempt to achieve the same goals. Deleted files get sent to the graveyard (`/tmp/graveyard-$USER` by default, see notes on changing this) under their absolute path, giving you a chance to recover them. No data is overwritten. If files that share the same path are deleted, they will be renamed as numbered backups. For more information see the [rip repository](https://github.com/nivekuil/rip). echo "*** Removing rip ***" # Remove plugin related files removepkg &name;-&version; rm -rf &emhttp; rm -rf &plugin; echo echo "*** Successfully removed rip ***"