Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 789 → Rev 790

/scripts/sbin/alcasar-logout.sh
2,7 → 2,7
# $Id$
 
# alcasar-logout.sh
# by Richard REY
# by Rexy
# This script is distributed under the Gnu General Public License (GPL)
 
# Déconnexion d'un ou de tous les usagers
9,7 → 9,7
# One user (or all users) disconnect
 
macallowed_file="/usr/local/etc/alcasar-macallowed"
radiussecret="ci0wkfI9"
radiussecret=""
OLDIFS=$IFS
IFS=$'\n'
 
/scripts/sbin/alcasar-uninstall.sh
182,7 → 182,7
sleep 1
 
# network
echo -en "\n- network(8) : "
echo -en "\n- network(9) : "
hostname localhost
/sbin/ifdown eth0
[ -e /etc/sysconfig/network-scripts/default-ifcfg-eth0 ] && mv /etc/sysconfig/network-scripts/default-ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0 && echo -n "1, "
193,6 → 193,8
[ -e /etc/hosts.allow.default ] && mv /etc/hosts.allow.default /etc/hosts.allow && echo -n "6, "
[ -e /etc/hosts.deny.default ] && mv /etc/hosts.deny.default /etc/hosts.deny && echo -n "7, "
[ -e /etc/sysconfig/iptables ] && rm -f /etc/sysconfig/iptables && echo -n "8"
[ -e /etc/modprobe.preload.default ] && mv /etc/modprobe.preload.default /etc/modprobe.preload && echo -n "9"
 
echo
/sbin/ifup eth0
sleep 1