[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#587956: a patch



Oops, meant to send that to #592551.
But anyway, here's a patch for the issue.

-- 
1KB		// Microsoft corollary to Hanlon's razor:
		//	Never attribute to stupidity what can be
		//	adequately explained by malice.
--- netbase.postinst.orig	2010-08-10 23:05:42.440582610 +0200
+++ netbase.postinst	2010-08-10 23:06:37.256578113 +0200
@@ -57,6 +57,20 @@
 EOF
 }
 
+# delete bindv6only.conf that was created by 4.38 .. 4.42
+remove_bindv6only_conf() {
+  if [ ! -e /etc/sysctl.d/bindv6only.conf ]; then
+    return 0
+  fi
+  if [ "$2" ] && dpkg --compare-versions "$2" ge "4.42"; then
+    return 0
+  fi
+  if ! echo "289c9c015f7c4da3b77b428ada1fb72a  /etc/sysctl.d/bindv6only.conf"|md5sum -c --status; then
+    return 0
+  fi
+  rm /etc/sysctl.d/bindv6only.conf
+}
+
 case "$1" in
     configure)
     if [ -z "$2" ]; then
@@ -64,7 +78,7 @@
 	create_networks_file
     fi
     update_rc
-    #create_bindv6only_conf "$@"
+    remove_bindv6only_conf "$@"
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)

Attachment: signature.asc
Description: Digital signature


Reply to: