No changes between revisions
//scripts/alcasar-condown.sh |
9,6 → 9,7 |
# This script is started by coova after each logout |
# Ce script est lancé par coova à chaque déconnexion d'usager |
|
CONF_FILE="/usr/local/etc/alcasar.conf" |
PASSWD_FILE="/root/ALCASAR-passwords.txt" |
DB_USER=`cat $PASSWD_FILE|grep ^db_user=|cut -d'=' -f2` |
DB_PASSWORD=`cat $PASSWD_FILE|grep ^db_password=|cut -d'=' -f2` |
//scripts/alcasar-list-ip_gw.sh |
0,0 → 1,21 |
#!/bin/sh |
# |
# $Id: alcasar-conup.sh 2886 2020-11-23 22:50:01Z rexy $ |
# |
# alcasar-list-users.sh |
# by Rexy |
# This script is distributed under the Gnu General Public License (GPL) |
|
# This script displays authenticated systems (users & @MAC) with their gw |
# Ce script affiche les systèmes authentifiés (utilisateurs et @MAC) avec leur routeur |
|
CONF_FILE="/usr/local/etc/alcasar.conf" |
|
nb_gw=`grep ^WAN $CONF_FILE | wc -l` |
for (( i = 0 ; i <= $nb_gw ; i++ ));do |
gw="gw$i" |
ip_list=`ipset l $gw|grep -v :` |
for ip in $ip_list;do |
echo "$ip $gw" |
done |
done |
Property changes: |
Added: svn:eol-style |
+native |
\ No newline at end of property |
Added: svn:executable |
+* |
\ No newline at end of property |