← Back to team overview

netplan-developers team mailing list archive

[Merge] netplan:breadcrumbs into netplan:master

 

Mathieu Trudel-Lapierre has proposed merging netplan:breadcrumbs into netplan:master.

Requested reviews:
  Developers of netplan (netplan-developers)

For more details, see:
https://code.launchpad.net/~netplan-developers/netplan/+git/netplan/+merge/332439

Point to netplan doc and config dir.
-- 
Your team Developers of netplan is requested to review the proposed merge of netplan:breadcrumbs into netplan:master.
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..6e46b63
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+set -e
+set -u
+
+case "$1" in
+    configure)
+	# Create /etc/network/interfaces as breadcrumbs if it doesn't
+	# already exist
+	if [ ! -f /etc/network/interfaces ]; then
+		cat <<EOF >/etc/network/interfaces
+# ifupdown has been replaced by netplan in new Ubuntu releases.
+# Network configuration is now written in files (in YAML format), in the
+# /etc/netplan directory.
+# Please see 'man 5 netplan' for more information.
+EOF
+	fi
+	;;
+    *)
+	;;
+esac
+
+#DEBHELPER#
+
+exit 0

Follow ups