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:
parent
28f310e4b1
commit
43d6e39757
@ -62,7 +62,7 @@ case "$1" in
|
||||
# Get a user
|
||||
# @private
|
||||
get)
|
||||
count=$(ls -1A $users_enabled | wc -l)
|
||||
count=$(getall | wc -l)
|
||||
if [ "${count}" -eq "0" ]; then
|
||||
echo "No user found. Use 'zjunet user add' to add a user."
|
||||
exit 1
|
||||
@ -71,7 +71,7 @@ case "$1" in
|
||||
users=$(getall)
|
||||
read -p "Choose User [ ${users}]: " username
|
||||
else
|
||||
username=$(ls -1 $users_enabled | head -n1)
|
||||
username=$(getall | head -n1)
|
||||
fi
|
||||
echo $username
|
||||
fi
|
||||
|
||||
@ -83,6 +83,7 @@ case "$1" in
|
||||
*)
|
||||
login $USERNAME $PASSWORD
|
||||
;;
|
||||
|
||||
"${BASEDIR}/sudo.sh" "${BASEDIR}/route.sh"
|
||||
esac
|
||||
|
||||
"${BASEDIR}/sudo.sh" "${BASEDIR}/route.sh"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user