grml-addtun: tun/tap interfaces should be initialised also
authorMichael Gebetsroither <michael.geb@gmx.at>
Thu, 4 Oct 2007 16:34:32 +0000 (18:34 +0200)
committerMichael Gebetsroither <michael.geb@gmx.at>
Thu, 4 Oct 2007 16:34:32 +0000 (18:34 +0200)
sbin/grml-addtun

index ac7d6a4..765b53a 100755 (executable)
@@ -58,10 +58,12 @@ function createTun()
     if [[ $OPT_BRIDGE_ != '' ]]; then
         brctl addif "$OPT_BRIDGE_" "$1"
     fi
+    ifconfig "$1" 0.0.0.0 up
 }
 
 function trashTun()
 {
+    ifconfig "$1" down
     if [[ $OPT_BRIDGE_ != '' ]]; then
         brctl delif "$OPT_BRIDGE_" "$1"
     fi