diff options
author | Geert Hendrickx <geert@hendrickx.be> | 2011-06-18 13:19:58 +0200 |
---|---|---|
committer | Rémy Oudompheng <remy@archlinux.org> | 2011-06-18 13:22:08 +0200 |
commit | 32d8a3da240cbd992aae88b32aae0f82c3e8788b (patch) | |
tree | 9be91fa16bef121cda759e3ef7b3f70cc5e6f111 /src/connections | |
parent | 3781d2332fecb51d30d2c57fdbe31d613264a8ac (diff) | |
download | netctl-32d8a3da240cbd992aae88b32aae0f82c3e8788b.tar.gz netctl-32d8a3da240cbd992aae88b32aae0f82c3e8788b.tar.xz |
Add the ability to disable IPv6 configuratioin ethernet-static
Also-Contributed-By: Olivier Mehani <olivier.mehani@nicta.com.au>
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
Diffstat (limited to 'src/connections')
-rw-r--r-- | src/connections/ethernet | 9 |
1 files changed, 5 insertions, 4 deletions
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 |