]> git.proxmox.com Git - vzctl.git/blame - debian/patches/fix-vzifup-post-error.patch
Fix unrecognized option '--all'
[vzctl.git] / debian / patches / fix-vzifup-post-error.patch
CommitLineData
69459d60
DM
1Fix unrecognized option '--all'
2
3To reproduce use:
4
5 service networking restart
6
7This calls:
8
9 ifup -a --exclude=lo ("service networking restart")
10
11which sets $ADDRFAM == "meta" and $IFACE == "--all"
12
13
14Index: new/etc/network/if-up.d/vzifup-post.in
15===================================================================
16--- new.orig/etc/network/if-up.d/vzifup-post.in 2012-09-28 09:05:45.000000000 +0200
17+++ new/etc/network/if-up.d/vzifup-post.in 2014-03-13 07:38:18.415372011 +0100
18@@ -1,3 +1,5 @@
19 #!/bin/sh
20
21+[ "$ADDRFAM" = "inet" ] || [ "$ADDRFAM" = "inet6" ] || exit 0
22+
23 exec @SBINDIR@/vzifup-post "$IFACE"