Browse Source

net-snmp: remove /etc/default/snmpd Debianism

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
lilik-openwrt-22.03
Stijn Tintel 10 years ago
parent
commit
e2b43afc85
3 changed files with 1 additions and 9 deletions
  1. +0
    -6
      net/net-snmp/Makefile
  2. +0
    -1
      net/net-snmp/files/snmpd.default
  3. +1
    -2
      net/net-snmp/files/snmpd.init

+ 0
- 6
net/net-snmp/Makefile View File

@ -216,7 +216,6 @@ define Package/libnetsnmp/install
endef
define Package/snmpd/conffiles
/etc/default/snmpd
/etc/config/snmpd
endef
@ -225,8 +224,6 @@ define Package/snmpd/install
$(INSTALL_DATA) ./files/snmpd.conf $(1)/etc/config/snmpd
$(INSTALL_DIR) $(1)/etc/snmp
ln -sf /var/run/snmpd.conf $(1)/etc/snmp/
$(INSTALL_DIR) $(1)/etc/default
$(INSTALL_DATA) ./files/snmpd.default $(1)/etc/default/snmpd
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/snmpd.init $(1)/etc/init.d/snmpd
$(INSTALL_DIR) $(1)/usr/sbin
@ -234,7 +231,6 @@ define Package/snmpd/install
endef
define Package/snmpd-static/conffiles
/etc/default/snmpd
/etc/config/snmpd
endef
@ -243,8 +239,6 @@ define Package/snmpd-static/install
$(INSTALL_DATA) ./files/snmpd.conf $(1)/etc/config/snmpd
$(INSTALL_DIR) $(1)/etc/snmp
ln -sf /var/run/snmpd.conf $(1)/etc/snmp/
$(INSTALL_DIR) $(1)/etc/default
$(INSTALL_DATA) ./files/snmpd.default $(1)/etc/default/snmpd
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/snmpd.init $(1)/etc/init.d/snmpd
$(INSTALL_DIR) $(1)/usr/sbin


+ 0
- 1
net/net-snmp/files/snmpd.default View File

@ -1 +0,0 @@
OPTIONS="-Lf /dev/null -p /var/run/snmpd.pid"

+ 1
- 2
net/net-snmp/files/snmpd.init View File

@ -2,7 +2,7 @@
# Copyright (C) 2008 OpenWrt.org
START=50
DEFAULT=/etc/default/snmpd
OPTIONS="-Lf /dev/null -p /var/run/snmpd.pid"
LIB_D=/var/lib/snmp
LOG_D=/var/log
RUN_D=/var/run
@ -148,7 +148,6 @@ start() {
config_foreach snmpd_exec_add exec
config_foreach snmpd_disk_add disk
[ -f $DEFAULT ] && . $DEFAULT
$DEBUG /usr/sbin/snmpd $OPTIONS
}
stop() {


Loading…
Cancel
Save