Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp packages
Commits
1366c7b5
Commit
1366c7b5
authored
Mar 12, 2014
by
Jorge L. Florit
Browse files
qmp-guifi: add configuration to mini_snmpd
parent
7579620b
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/qmp-guifi/files/etc/qmp/qmp_guifi.sh
View file @
1366c7b5
...
...
@@ -175,6 +175,16 @@ configure() {
j
=
$((
$j
+
1
))
done
# If mini_snmpd present configure it with wlan0 (used by Guifi.net graphics)
[
-f
/etc/config/mini_snmpd
]
&&
{
uci
set
mini_snmpd.@mini_snmpd[0].enabled
=
1
uci
set
mini_snmpd.@mini_snmpd[0].contact
=
"guifi@guifi.net"
uci
set
mini_snmpd.@mini_snmpd[0].location
=
"
$nodename
"
INTERFACES
=
$(
uci get mini_snmpd.@mini_snmpd[0].interfaces
)
echo
$INTERFACES
|
grep
'wlan0'
2> /dev/null
[
$?
-eq
0
]
&&
uci add_list mini_snmpd.@mini_snmpd[0].interfaces
=
"wlan0"
}
# Set filter to update with image that includes 'qmp-guifi' package
uci
set
qmp.update.filter
=
"qMp-Guifi.*sysupgrade"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment