luci-mod-network: allow netifd version query to fail
authorJo-Philipp Wich <jo@mein.io>
Mon, 31 May 2021 17:00:15 +0000 (19:00 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 31 May 2021 17:00:15 +0000 (19:00 +0200)
Fixes: 17af33ee48 ("luci-mod-network: migrate network config depending on netifd version")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

index 0a1834062e280529151fc0953a376856cb6447e1..78b952eff75f6d95b28a49511d9df6fe2b41250f 100644 (file)
@@ -294,7 +294,7 @@ return view.extend({
                        network.getDSLModemType(),
                        network.getDevices(),
                        fs.lines('/etc/iproute2/rt_tables'),
-                       fs.read('/usr/lib/opkg/info/netifd.control'),
+                       L.resolveDefault(fs.read('/usr/lib/opkg/info/netifd.control')),
                        uci.changes()
                ]);
        },