Warning!

Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!

grml-addtun: reworked interface activation code
authorMichael Gebetsroither <michael.geb@gmx.at>
Tue Oct 16 22:45:18 2007 +0200 (13 months ago)
changeset 502119e186b248
manifest2119e186b248
parent 49d0e624ff7e4f
child 51f562c0f47153
grml-addtun: reworked interface activation code
debian/changelog
sbin/grml-addtun
--- a/debian/changelog Tue Oct 16 09:22:01 2007 +0200
+++ b/debian/changelog Tue Oct 16 22:45:18 2007 +0200
@@ -1,14 +1,15 @@ grml-network (0.1.13) unstable; urgency=
grml-network (0.1.13) unstable; urgency=low
+
+ [ Michael Prokop ]
+ * some small typo fixes
[ Michael Gebetsroither ]
* added grml-addtun for tun/tap device handling
* added manpage for grml-addtun
* added uml-utilities to Suggests
+ * grml-addtun: reworked interface activation code
- [ Michael Prokop ]
- * some small typo fixes
-
- -- Michael Prokop <mika@grml.org> Tue, 16 Oct 2007 00:36:19 +0200
+ -- Michael Gebetsroither <gebi@grml.org> Tue, 16 Oct 2007 22:44:41 +0200
grml-network (0.1.12) unstable; urgency=low
--- a/sbin/grml-addtun Tue Oct 16 09:22:01 2007 +0200
+++ b/sbin/grml-addtun Tue Oct 16 22:45:18 2007 +0200
@@ -58,12 +58,12 @@ function createTun()
if [[ $OPT_BRIDGE_ != '' ]]; then
brctl addif "$OPT_BRIDGE_" "$1"
fi
- ifconfig "$1" 0.0.0.0 up
+ ip link set up dev "$1"
}
function trashTun()
{
- ifconfig "$1" down
+ ip link set down dev "$1"
if [[ $OPT_BRIDGE_ != '' ]]; then
brctl delif "$OPT_BRIDGE_" "$1"
fi
@@ -96,6 +96,7 @@ if [[ $OPT_DEL_ == 'false' ]]; then
if [[ $OPT_DEL_ == 'false' ]]; then
if [[ $OPT_BRIDGE_ != '' && $OPT_AUTO_ == 'true' ]]; then
brctl showmacs "$OPT_BRIDGE_" &>/dev/null || brctl addbr "$OPT_BRIDGE_"
+ ip link set up dev "$OPT_BRIDGE_"
fi
fromCmdline "createTun" "$@"
else