Blame view

remove_bridge.sh 390 Bytes
3e470988   hmalti   First commit
1
2
  #!/bin/bash
  NOM_BRIDGE_TO_REMOVE=$3;
b1087939   hmalti   Ajout commandes
3
  
3e470988   hmalti   First commit
4
5
6
7
8
9
  
  #vérification que l'utilisateur donne bien un nom à l'image
  if [[ -z "$NOM_BRIDGE_TO_REMOVE" ]]; then 
    echo "Il faut donner le nom du bridge à supprimer ! Relancez la commande avec les bons arguments."
    exit
  fi
b1087939   hmalti   Ajout commandes
10
11
  chmod -R 755 $PATH_MANIFEST
  rm $PATH_MANIFEST/bridges/$NOM_BRIDGE_TO_REMOVE.*
3e470988   hmalti   First commit
12
  ip link delete $NOM_BRIDGE_TO_REMOVE type bridge
b1087939   hmalti   Ajout commandes
13
  #delbr