Subversion Repositories ALCASAR

Compare Revisions

Regard whitespace Rev 2975 → Rev 2974

/scripts/alcasar-list-ip_gw.sh
1,6 → 1,8
#!/bin/sh
#
# alcasar-list-ip_gw.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)
 
11,7 → 13,7
 
nb_gw=`grep ^WAN $CONF_FILE | wc -l`
for (( i = 0 ; i <= $nb_gw ; i++ ));do
gw="gw$i"; gw_order=`expr $i + 1`
gw="gw$i"; gw_order=`expr $1 + 1`
ip_list=`ipset l $gw|grep -v :`
for ip in $ip_list;do
echo "$ip $gw_order"