mirror of https://github.com/openwrt/packages.git
net-snmp: remove /etc/default/snmpd Debianism
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>pull/920/head
parent
a3bacc1389
commit
e2b43afc85
|
@ -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
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
OPTIONS="-Lf /dev/null -p /var/run/snmpd.pid"
|
|
@ -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…
Reference in New Issue