about summary refs log tree commit diff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/20-connectivity-ubuntu.conf2
-rw-r--r--debian/control18
-rw-r--r--debian/network-manager-config-connectivity-ubuntu.install1
-rw-r--r--debian/network-manager-config-connectivity-ubuntu.postinst9
4 files changed, 30 insertions, 0 deletions
diff --git a/debian/20-connectivity-ubuntu.conf b/debian/20-connectivity-ubuntu.conf
new file mode 100644
index 00000000..e8cbed31
--- /dev/null
+++ b/debian/20-connectivity-ubuntu.conf
@@ -0,0 +1,2 @@
+[connectivity]
+uri=http://connectivity-check.ubuntu.com/
diff --git a/debian/control b/debian/control
index 6cfd96b5..084ff554 100644
--- a/debian/control
+++ b/debian/control
@@ -298,3 +298,21 @@ Description: NetworkManager configuration to enable connectivity checking
  No user data is transmitted in the connectivity checks, but merely contacting
  the Debian connectivity check servers reveals that the user is running a
  Debian(-based) operating system with NetworkManager.
+
+Package: network-manager-config-connectivity-ubuntu
+Architecture: all
+Multi-Arch: foreign
+Depends: ${misc:Depends},
+         network-manager (>= ${source:Version})
+Description: NetworkManager configuration to enable connectivity checking
+ This package contains a configuration file which enables NetworkManager's
+ connectivity checking functionality.
+ .
+ NetworkManager will try to connect to an Ubuntu server to determine the
+ connection status.
+ .
+ This is particularly useful for captive portal detection.
+ .
+ No user data is transmitted in the connectivity checks, but merely contacting
+ the Ubuntu connectivity check servers reveals that the user is running an
+ Ubuntu(-based) operating system with NetworkManager.
diff --git a/debian/network-manager-config-connectivity-ubuntu.install b/debian/network-manager-config-connectivity-ubuntu.install
new file mode 100644
index 00000000..e52225bf
--- /dev/null
+++ b/debian/network-manager-config-connectivity-ubuntu.install
@@ -0,0 +1 @@
+debian/20-connectivity-ubuntu.conf usr/lib/NetworkManager/conf.d/
diff --git a/debian/network-manager-config-connectivity-ubuntu.postinst b/debian/network-manager-config-connectivity-ubuntu.postinst
new file mode 100644
index 00000000..e8698667
--- /dev/null
+++ b/debian/network-manager-config-connectivity-ubuntu.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = configure ]; then
+    invoke-rc.d network-manager force-reload
+fi
+
+#DEBHELPER#