Subversion Repositories ALCASAR

Compare Revisions

No changes between revisions

Ignore whitespace Rev 490 → Rev 493

/scripts/sbin/alcasar-qos.sh
0,0 → 1,43
#/bin/sh
# $Id$
 
# active ou desactive la qualite de service réseau
# by 3abTux
 
SED="/bin/sed -i"
FIC_QOS="/usr/local/etc/alcasar-iptables-qos.sh"
 
usage="Usage: alcasar-qos.sh {--on or -on} | {--off | -off} "
nb_args=$#
args=$1
if [ $nb_args -eq 0 ]
then
nb_args=1
args="-h"
fi
case $args in
-\? | -h* | --h*)
echo "$usage"
exit 0
;;
--on|-on)
# activation du filtrage réseau
if [ -e $FIC_QOS ] then
$SED "s?^QOS.*?QOS=\"yes\"?g" /usr/local/bin/alcasar-iptables.sh
/usr/local/bin/alcasar-iptables.sh
else
exit 2
fi
;;
--off|-off)
# désactivation du filtrage réseau
$SED "s?^QOS.*?QOS=\"no\"?g" /usr/local/bin/alcasar-iptables.sh
/usr/local/bin/alcasar-iptables.sh
;;
*)
echo "Argument inconnu :$1";
echo "$usage"
exit 1
;;
esac
 
Property changes:
Added: svn:eol-style
+LF
\ No newline at end of property
Added: svn:executable
+*
\ No newline at end of property
Added: svn:keywords
+Id Author Date
\ No newline at end of property