Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
teddysun committed Aug 14, 2016
1 parent fe9bd65 commit c0cd1ed
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions l2tp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -827,18 +827,14 @@ del_user(){

# Main process
action=$1
[ -z ${action} ] && action=install
if [ -z ${action} ] && [ "`basename $0`" != "l2tp" ]; then
action=install
fi

case ${action} in
install)
if [ -x /usr/bin/l2tp ]; then
echo "ERROR: /usr/bin/l2tp already exists. You must delete this file at first."
echo
exit 1
else
rm -f /root/l2tp.log
l2tp 2>&1 | tee -a /root/l2tp.log
fi
rm -f /root/l2tp.log
l2tp 2>&1 | tee -a /root/l2tp.log
;;
-l|--list)
list_users
Expand Down

0 comments on commit c0cd1ed

Please sign in to comment.