split apt sources list and withdraw "reseau_integration" from iso
[debian6500.git] / master / root / bin / deploiement_conf_reseau_integration.sh
index 3ed6ac121d1c376d33629fe66c657433ba63939b..8ab7d740184b3263543cf53cc57e1c705a294710 100755 (executable)
@@ -8,9 +8,10 @@
 # 2 : Sous reseau pour Clovis
 
 # globals vars
+APTSOURCES=/etc/apt/sources.list.d/reseau_integration.list
 SWITCH=0
 PROGNAME=$(basename $0)
-VER=1.0
+VER=1.1
 
 # help function
 function usage () {
@@ -46,7 +47,6 @@ route add 192.168.$SUB.160 gw 192.168.$SUB.231
 route add 192.168.$SUB.231 gw 192.168.$SUB.160
 route add 192.168.0.53 gw 192.168.$SUB.160
 
-
 if [ $SWITCH -eq 1 ]; then
     # Recuperation du chemin pour executer le script du switch depuis un chemin quelconque
     mydir=$(dirname $0)
@@ -55,3 +55,5 @@ if [ $SWITCH -eq 1 ]; then
     $mydir/conf_swm_integration.tcl $SUB
 fi
 
+# Ajout des depots debian
+[ -f $APTSOURCES~ ] && mv -f $APTSOURCES~ $APTSOURCES