<commit_before>From d8818964eaf3667112a34a27d7fa45621c546ad6 Mon Sep 17 00:00:00 2001
From: RubenKelevra <<EMAIL>>
Date: Sun, 7 Aug 2016 04:52:34 +0200
Subject: [PATCH] add script for bridge set from settings

---
 .../files/lib/gluon/upgrade/499-update-bridge-tag-setting         | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100755 package/gluon-node-info/files/lib/gluon/upgrade/499-update-bridge-tag-setting

diff --git a/package/gluon-node-info/files/lib/gluon/upgrade/499-update-bridge-tag-setting b/package/gluon-node-info/files/lib/gluon/upgrade/499-update-bridge-tag-setting
new file mode 100755
index 0000000..00c1343
--- /dev/null
+++ b/package/gluon-node-info/files/lib/gluon/upgrade/499-update-bridge-tag-setting
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+if [ $(uci get network.client.ifname | grep "$(lua -e 'print(require("gluon.sysconfig").lan_ifname)')" | wc -l) -gt 0 ]; then
+    uci set gluon-node-info.bridge_lan.enabled='0' || true
+    uci set gluon-node-info.bridge_lan='void' || true
+elif [ $(uci get network.wan.ifname | grep "$(lua -e 'print(require("gluon.sysconfig").lan_ifname)')" | wc -l) -gt 0 ]; then
+    uci set gluon-node-info.bridge_lan='void' || true
+    uci set gluon-node-info.bridge_lan.enabled='1' || true
+fi
+
-- <commit_msg>create the section before setting the options<commit_after>From d8818964eaf3667112a34a27d7fa45621c546ad6 Mon Sep 17 00:00:00 2001
From: RubenKelevra <<EMAIL>>
Date: Sun, 7 Aug 2016 04:52:34 +0200
Subject: [PATCH] add script for bridge set from settings

---
 .../files/lib/gluon/upgrade/499-update-bridge-tag-setting         | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100755 package/gluon-node-info/files/lib/gluon/upgrade/499-update-bridge-tag-setting

diff --git a/package/gluon-node-info/files/lib/gluon/upgrade/499-update-bridge-tag-setting b/package/gluon-node-info/files/lib/gluon/upgrade/499-update-bridge-tag-setting
new file mode 100755
index 0000000..00c1343
--- /dev/null
+++ b/package/gluon-node-info/files/lib/gluon/upgrade/499-update-bridge-tag-setting
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+uci set gluon-node-info.bridge_lan='void' || true
+
+if [ $(uci get network.client.ifname | grep "$(lua -e 'print(require("gluon.sysconfig").lan_ifname)')" | wc -l) -gt 0 ]; then
+    uci set gluon-node-info.bridge_lan.enabled='0' || true
+elif [ $(uci get network.wan.ifname | grep "$(lua -e 'print(require("gluon.sysconfig").lan_ifname)')" | wc -l) -gt 0 ]; then
+    uci set gluon-node-info.bridge_lan.enabled='1' || true
+fi
+
-- 
{'fraction_non_alphanumeric': 0.17374057913526378, 'fraction_numerical': 0.08488694962316541, 'mean_word_length': 4.044, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7063171', 'n_tokens_mistral': 1153, 'n_tokens_neox': 964, 'n_words': 192}