projects
/
packages.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[packages] mini-snmpd: make IPv4 / IPv6 mode switchable when daemon is built with...
[packages.git]
/
net
/
mini_snmpd
/
files
/
mini_snmpd.init
diff --git
a/net/mini_snmpd/files/mini_snmpd.init
b/net/mini_snmpd/files/mini_snmpd.init
index
5d7cb76
..
cc051c0
100644
(file)
--- a/
net/mini_snmpd/files/mini_snmpd.init
+++ b/
net/mini_snmpd/files/mini_snmpd.init
@@
-23,8
+23,11
@@
mini_snmpd_config() {
append_string "$cfg" contact "-C"
append_string "$cfg" disks "-d"
append_string "$cfg" interfaces "-i"
append_string "$cfg" contact "-C"
append_string "$cfg" disks "-d"
append_string "$cfg" interfaces "-i"
-
- config_get_bool enabled "$cfg" "enabled" '1'c
+
+ config_get_bool ipv6 "$cfg" "ipv6" '0'
+ [ "$ipv6" -gt 0 ] && append args "-6"
+
+ config_get_bool enabled "$cfg" "enabled" '1'
[ "$enabled" -gt 0 ] && $PROG $args &
}
[ "$enabled" -gt 0 ] && $PROG $args &
}