Use nfd.conf.sample from currently installed NFD

refs: #3282

Change-Id: Idc3a70fc62b98c72970eab41d16eb587a16efe9a
diff --git a/bin/minindn b/bin/minindn
index 2a8e4fa..36dcaa3 100755
--- a/bin/minindn
+++ b/bin/minindn
@@ -207,6 +207,11 @@
         info('No template file given and default template file cannot be found. Exiting...\n')
         quit()
 
+    # Update nfd.conf file used by Mini-NDN to match the currently installed version of NFD
+    nfdConfFile = "%s/nfd.conf" % install_dir
+    os.system("sudo cp /usr/local/etc/ndn/nfd.conf.sample %s" % nfdConfFile)
+    os.system("sudo sed -i \'s|default_level [A-Z]*$|default_level $LOG_LEVEL|g\' %s" % nfdConfFile)
+
     topo = NdnTopo(template_file)
 
     t = datetime.datetime.now()