uninstall.sh

来自「GSM猫管理程序」· Shell 代码 · 共 41 行

SH
41
字号
#!/bin/sh#Do not run directly. This is a helper script for make.BINDIR=$1if [ -z "$BINDIR" ]; then  BINDIR=/usr/local/binfiecho "You are going to delete all files from the SMS Server Tools."echo "This script deletes also the config file and stored messages."echo "Are you sure to proceed? [yes/no]"read answerif [ "$answer" != "yes" ]; then  exit 1fiecho "Deleting binary program files"# For Cygwin "smsd" and "smsd.exe" are the same while searching files,# but rm needs a complete name.[ -f $BINDIR/smsd.exe ] && rm $BINDIR/smsd.exe[ -f $BINDIR/smsd ] && rm $BINDIR/smsd[ -f $BINDIR/putsms ] && rm $BINDIR/putsms[ -f $BINDIR/getsms ] && rm $BINDIR/getsmsecho "Deleting some scripts"[ -f $BINDIR/pkill ] && echo "skipped $BINDIR/pkill, other programs might need it."[ -f $BINDIR/sendsms ] && rm $BINDIR/sendsms[ -f $BINDIR/sms2html ] && rm $BINDIR/sms2html[ -f $BINDIR/sms2unicode ] && rm $BINDIR/sms2unicode[ -f $BINDIR/unicode2sms ] && rm $BINDIR/unicode2smsecho "Deleting config file"[ -f /etc/smsd.conf ] && rm /etc/smsd.confecho "Deleting start-script"[ -d /etc/init.d ] && rm /etc/init.d/sms3[ -d /sbin/init.d ] && rm /sbin/init.d/sms3echo "Deleting spool directories"[ -d /var/spool/sms ] && rm -R /var/spool/sms

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?