From 32d8a3da240cbd992aae88b32aae0f82c3e8788b Mon Sep 17 00:00:00 2001 From: Geert Hendrickx Date: Sat, 18 Jun 2011 13:19:58 +0200 Subject: Add the ability to disable IPv6 configuratioin ethernet-static MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also-Contributed-By: Olivier Mehani Signed-off-by: Rémy Oudompheng --- src/connections/ethernet | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/connections/ethernet b/src/connections/ethernet index a792922..8ebb7dd 100644 --- a/src/connections/ethernet +++ b/src/connections/ethernet @@ -105,10 +105,10 @@ ethernet_up() { fi fi ;; - "") + ""|no) ;; *) - report_iproute "IP must be either 'dhcp' or 'static'" + report_iproute "IP must be either 'dhcp', 'static' or 'no'" ;; esac @@ -173,10 +173,11 @@ ethernet_up() { done fi ;; - "") + ""|no) + sysctl -q -w net.ipv6.conf.$INTERFACE.accept_ra=0 ;; *) - report_iproute "IP6 must be 'dhcp', 'dhcp-noaddr', 'stateless' or 'static'" + report_iproute "IP6 must be 'dhcp', 'dhcp-noaddr', 'stateless', 'static' or 'no'" ;; esac -- cgit v1.2.3-24-g4f1b