Browse Source

fix missing fastd

Sunz3r 7 years ago
parent
commit
00b718d3ec
1 changed files with 9 additions and 4 deletions
  1. 9 4
      ext-respondd.py

+ 9 - 4
ext-respondd.py

@@ -315,10 +315,6 @@ def createNodeinfo():
                 "version": open('/sys/module/batman_adv/version').read().strip(),
 #                "compat": # /lib/gluon/mesh-batman-adv-core/compat
             },
-            "fastd": {
-                "version": call(['fastd','-v'])[0].split(' ')[1],
-                "enabled": True,
-            },
             "status-page": {
                 "api": 0,
             },
@@ -336,6 +332,15 @@ def createNodeinfo():
         "system": {},
         "location": {},
     }
+
+    try:
+      j["software"]["fastd"] = {
+          "version": call(['fastd','-v'])[0].split(' ')[1],
+          "enabled": True,
+      };
+    except:
+        pass
+
     return merge(j, aliases["nodeinfo"])
 
 def createStatistics():