#!/bin/sh
if [ "${pkgwizard_remove_archive}" = "true" ]; then
    /var/packages/ipkgui/target/extras/remove_archive.pl
fi
/bin/sleep 1
if [ "${pkgwizard_remove_config}" = "true" ]; then
    /bin/rm -f /usr/syno/etc/packages/ipkgui/*.json
    /bin/rm -f /usr/syno/etc/packages/ipkgui/*.dat
    /bin/rm -f /usr/syno/etc/packages/ipkgui/lastchange
fi
exit 0
