From ff682025003d7ad1759aad838798c05636e2bb08 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Mon, 21 Apr 2014 18:58:35 +0200 Subject: [PATCH] Restart each interface in ubuntu context Ubuntu does not support restarting network and it needs to restart each of the interfaces. In debian restarting the network works and will continue to use the same method. lsb_release command is not used as it is not installed by default in debian. --- .../context-packages/base_deb/etc/one-context.d/00-network | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/scripts/context-packages/base_deb/etc/one-context.d/00-network b/share/scripts/context-packages/base_deb/etc/one-context.d/00-network index f3034435ce..cf853a8e63 100755 --- a/share/scripts/context-packages/base_deb/etc/one-context.d/00-network +++ b/share/scripts/context-packages/base_deb/etc/one-context.d/00-network @@ -170,7 +170,8 @@ configure_network() activate_network() { - if [[ `lsb_release -c | awk '{print($2)}'` = precise ]]; then + . /etc/os-release + if [ ID = "ubuntu" ]; then IFACES=`get_interfaces` for i in $IFACES; do