info() { echo -e "STCAI-ISP-TINY 下载编程烧录软件" echo -e "非 root 用户需要将用户添加到 uucp 用户组:" echo -e "sudo gpasswd -a \$USER uucp" } post_install() { info } post_upgrade() { echo "deleting the stcai-isp-tiny bottle..." find /home -maxdepth 2 -name ".stcai-isp-tiny" -exec rm -rf {} \; info } pre_remove() { echo "deleting the stcai-isp-tiny bottle..." find /home -maxdepth 2 -name ".stcai-isp-tiny" -exec rm -rf {} \; }