mirror of
https://github.com/teddysun/across.git
synced 2025-01-19 06:19:35 +08:00
update
This commit is contained in:
parent
fe9bd65b44
commit
c0cd1ed4ee
14
l2tp.sh
14
l2tp.sh
@ -827,18 +827,14 @@ del_user(){
|
|||||||
|
|
||||||
# Main process
|
# Main process
|
||||||
action=$1
|
action=$1
|
||||||
[ -z ${action} ] && action=install
|
if [ -z ${action} ] && [ "`basename $0`" != "l2tp" ]; then
|
||||||
|
action=install
|
||||||
|
fi
|
||||||
|
|
||||||
case ${action} in
|
case ${action} in
|
||||||
install)
|
install)
|
||||||
if [ -x /usr/bin/l2tp ]; then
|
rm -f /root/l2tp.log
|
||||||
echo "ERROR: /usr/bin/l2tp already exists. You must delete this file at first."
|
l2tp 2>&1 | tee -a /root/l2tp.log
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
rm -f /root/l2tp.log
|
|
||||||
l2tp 2>&1 | tee -a /root/l2tp.log
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
-l|--list)
|
-l|--list)
|
||||||
list_users
|
list_users
|
||||||
|
Loading…
x
Reference in New Issue
Block a user