📄 uninstall.sh
字号:
#!/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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -