Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
big bug
Browse files Browse the repository at this point in the history
上一个传错了……
  • Loading branch information
satouriko committed May 21, 2016
1 parent 41bc16f commit 209a435
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,31 @@
#########################################################################
#!/bin/bash

echo "欢迎使用neu ipgw登陆器 2645工作室出品"
echo "请输入校园网账号:"
read username
echo "请输入校园网密码:"
stty -echo
read password
echo "请再次输入校园网密码:"
read repassword

while [ $password != $repassword ];
do
echo "两次输入的密码不一致,请重试!"
echo "请输入校园网密码:"
read password
echo "请再次输入校园网密码:"
read repassword
done
stty echo

mkdir /usr/local/neuipgw
cp ./ipgw.sh /usr/local/neuipgw/ipgw.sh
cp ./user.cfg /usr/local/neuipgw/user.cfg
#cp ./user.cfg /usr/local/neuipgw/user.cfg
echo "#!/bin/bash" > /usr/local/neuipgw/user.cfg
echo "USER_NAME=$username" >> /usr/local/neuipgw/user.cfg
echo "USER_PASS=$password" >> /usr/local/neuipgw/user.cfg
cp ./ipgw.png /usr/local/neuipgw/ipgw.png

echo [Desktop Entry]>/usr/share/applications/neuipgw.desktop
Expand All @@ -20,3 +42,7 @@ echo Icon=/usr/local/neuipgw/ipgw.png>>/usr/share/applications/neuipgw.desktop
echo Terminal=true>>/usr/share/applications/neuipgw.desktop
echo Type=Application>>/usr/share/applications/neuipgw.desktop
echo Categories=Network>>/usr/share/applications/neuipgw.desktop

echo "安装成功!"


0 comments on commit 209a435

Please sign in to comment.