1 |
diff -Nur e-smith-base-5.4.0/root/etc/e-smith/templates/etc/sysctl.conf/net.ipv6 e-smith-base-5.4.0-ipv6/root/etc/e-smith/templates/etc/sysctl.conf/net.ipv6 |
2 |
--- e-smith-base-5.4.0/root/etc/e-smith/templates/etc/sysctl.conf/net.ipv6 1970-01-01 01:00:00.000000000 +0100 |
3 |
+++ e-smith-base-5.4.0-ipv6/root/etc/e-smith/templates/etc/sysctl.conf/net.ipv6 2013-06-08 11:56:36.911219332 +0200 |
4 |
@@ -0,0 +1,10 @@ |
5 |
+{ |
6 |
+ if ( ($IPv6{status} || 'disabled') ne "enabled" ) { |
7 |
+ $OUT .= "# IPv6 is disabled\n"; |
8 |
+ $OUT .= "net.ipv6.conf.all.disable_ipv6 = 1\n"; |
9 |
+ $OUT .= "net.ipv6.conf.default.disable_ipv6 = 1\n"; |
10 |
+ } |
11 |
+ else { |
12 |
+ $OUT .= "# IPv6 is enabled\n"; |
13 |
+ } |
14 |
+} |