Update changelog (mention uml-utilities)
[grml-network.git] / sbin / grml-addtun
index ac7d6a4..18be9a7 100755 (executable)
@@ -29,7 +29,7 @@ OPTIONS:
    -u <user>    this user should be able to use the tun device
    -g <group>   this group should be able to use the tun device
    -b <bridge>  if given, all tun/tap devices are added/removed from the bridge
-   -a           enable auto mode, eg. create the bridge if not allready existing and
+   -a           enable auto mode, eg. create the bridge if not already existing and
                     delete it when empty after removing given tun devices
    -h           this help
 EOT
@@ -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
@@ -108,4 +110,4 @@ else
     fi
 fi
 
-# vim: filetype=sh
+## END OF FILE #################################################################