diff options
-rwxr-xr-x | meta-networking/recipes-protocols/net-snmp/files/init | 2 | ||||
-rw-r--r-- | meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.1.bb | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/net-snmp/files/init b/meta-networking/recipes-protocols/net-snmp/files/init index 434b2fa3f2..6b02570c66 100755 --- a/meta-networking/recipes-protocols/net-snmp/files/init +++ b/meta-networking/recipes-protocols/net-snmp/files/init | |||
@@ -28,6 +28,8 @@ case "$1" in | |||
28 | echo -n " snmptrapd" | 28 | echo -n " snmptrapd" |
29 | fi | 29 | fi |
30 | echo "." | 30 | echo "." |
31 | |||
32 | test ! -x /sbin/restorecon || /sbin/restorecon -FR /var/lib/net-snmp | ||
31 | ;; | 33 | ;; |
32 | stop) | 34 | stop) |
33 | echo -n "Stopping network management services:" | 35 | echo -n "Stopping network management services:" |
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.1.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.1.bb index 16d733cb10..bf67216a40 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.1.bb +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.1.bb | |||
@@ -38,6 +38,7 @@ EXTRA_OECONF = "--disable-embedded-perl \ | |||
38 | --enable-shared \ | 38 | --enable-shared \ |
39 | --disable-manuals \ | 39 | --disable-manuals \ |
40 | --with-defaults \ | 40 | --with-defaults \ |
41 | --with-persistent-directory=${localstatedir}/lib/net-snmp \ | ||
41 | ${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}" | 42 | ${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}" |
42 | 43 | ||
43 | # net-snmp needs to have mib-modules=smux enabled to enable quagga to support snmp | 44 | # net-snmp needs to have mib-modules=smux enabled to enable quagga to support snmp |