This repository has been archived by the owner on Feb 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
139 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
######################################################################### | ||
# File Name: uninstall.sh | ||
# Author: Li Jiahao | ||
# ############### | ||
# mail: [email protected] | ||
# Created Time: Wed 08 Feb 2017 11:49:25 AM CST | ||
######################################################################### | ||
#!/bin/bash | ||
|
||
echo "感谢使用NEU IPGW登陆器 2645工作室出品" | ||
|
||
echo "您确定要卸载吗(Y/n)?这将会删除程序安装目录内的所有文件。" | ||
read confirm | ||
|
||
if [[ $confirm == 'n' ]] || [[ $confirm == 'N' ]] ; | ||
then | ||
exit | ||
fi | ||
|
||
me=`whoami` | ||
|
||
sudo rm -rf /opt/2645/neuipgw | ||
sudo rm -rf /usr/local/neuipgw #old version | ||
sudo rm -rf /usr/bin/ipgw | ||
sudo rm -f /usr/share/applications/neuipgw.desktop | ||
rm -f /home/$me/.local/share/applications/neuipgw.desktop | ||
sudo rm -rf /etc/neuipgw #old version | ||
|
||
echo "是否清除密码等配置信息(y/N)?此操作将不会影响你电脑上的其他用户。" | ||
read clconfig | ||
|
||
if [[ $clconfig == 'y' ]] || [[ $clconfig == 'Y' ]] ; | ||
then | ||
rm -rf /home/$me/.neuipgw | ||
fi | ||
|
||
|
||
echo "卸载成功!" |