nlsr: Adding upstart, postinst, and preinst scripts
NLSR will not be operable until properly configured and proper certificates manually created.
diff --git a/nlsr/debian/nlsr.upstart b/nlsr/debian/nlsr.upstart
new file mode 100644
index 0000000..394605f
--- /dev/null
+++ b/nlsr/debian/nlsr.upstart
@@ -0,0 +1,24 @@
+# nlsr.conf
+#
+# NDN NLSR Routing Daemon
+
+description "NDN NLSR Routing Daemon"
+author "John DeHart <jdd@wustl.edu>"
+
+start on started nrd
+stop on stopping nrd
+
+respawn
+respawn limit unlimited
+
+setuid nlsr
+setgid nlsr
+
+pre-start exec sleep 2
+
+script
+ export HOME=/var/lib/ndn/nlsr
+ exec /usr/bin/nlsr -f /etc/ndn/nlsr/nlsr.conf
+end script
+
+post-stop exec sleep 2