1
0
mirror of https://github.com/QSCTech/zjunet.git synced 2026-01-22 19:54:48 +08:00

wlan.sh now uses xl2tpd.conf

This commit is contained in:
Zeno Zeng 2014-10-15 16:35:07 +08:00
parent 28f310e4b1
commit 43d6e39757
2 changed files with 5 additions and 4 deletions

View File

@ -62,7 +62,7 @@ case "$1" in
# Get a user # Get a user
# @private # @private
get) get)
count=$(ls -1A $users_enabled | wc -l) count=$(getall | wc -l)
if [ "${count}" -eq "0" ]; then if [ "${count}" -eq "0" ]; then
echo "No user found. Use 'zjunet user add' to add a user." echo "No user found. Use 'zjunet user add' to add a user."
exit 1 exit 1
@ -71,7 +71,7 @@ case "$1" in
users=$(getall) users=$(getall)
read -p "Choose User [ ${users}]: " username read -p "Choose User [ ${users}]: " username
else else
username=$(ls -1 $users_enabled | head -n1) username=$(getall | head -n1)
fi fi
echo $username echo $username
fi fi

View File

@ -83,6 +83,7 @@ case "$1" in
*) *)
login $USERNAME $PASSWORD login $USERNAME $PASSWORD
;; ;;
esac
"${BASEDIR}/sudo.sh" "${BASEDIR}/route.sh" "${BASEDIR}/sudo.sh" "${BASEDIR}/route.sh"
esac