Reply To: HOWTO: Captive Portal; more than 100 Free Authorized Clients

Home Page Forums Network Management ZeroShell HOWTO: Captive Portal; more than 100 Free Authorized Clients Reply To: HOWTO: Captive Portal; more than 100 Free Authorized Clients

#50982

miketheknife
Member

Hello all,

i uncommented the following lines out of the cpAddClient script. As i am not a bourne shell expert, i could not find out what those lines do. Can someone explain to me, or give me a hint where i can find a documentation about this.

if [ “${LAST:0:1}” == 0 ] ; then
LAST=”${LAST:1:1}”
fi

without those lines the creation of the additional FreeClients work, but when i delete some, i have gaps, and they are not getting refilled. look here (ex the 0003 is missing):

0000 0006 0010 0014 0018 0022 0026 0030 0034 0038 0042 0046 0050
0001 0007 0011 0015 0019 0023 0027 0031 0035 0039 0043 0047 0051
0002 0008 0012 0016 0020 0024 0028 0032 0036 0040 0044 0048 0053
0004 0009 0013 0017 0021 0025 0029 0033 0037 0041 0045 0049

I think the above mentioned codebit has to do with this.

Regards, Mike