net-snmp: remove /etc/default/snmpd Debianism
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
This commit is contained in:
parent
a3bacc1389
commit
e2b43afc85
|
@ -216,7 +216,6 @@ define Package/libnetsnmp/install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/snmpd/conffiles
|
define Package/snmpd/conffiles
|
||||||
/etc/default/snmpd
|
|
||||||
/etc/config/snmpd
|
/etc/config/snmpd
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -225,8 +224,6 @@ define Package/snmpd/install
|
||||||
$(INSTALL_DATA) ./files/snmpd.conf $(1)/etc/config/snmpd
|
$(INSTALL_DATA) ./files/snmpd.conf $(1)/etc/config/snmpd
|
||||||
$(INSTALL_DIR) $(1)/etc/snmp
|
$(INSTALL_DIR) $(1)/etc/snmp
|
||||||
ln -sf /var/run/snmpd.conf $(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_DIR) $(1)/etc/init.d
|
||||||
$(INSTALL_BIN) ./files/snmpd.init $(1)/etc/init.d/snmpd
|
$(INSTALL_BIN) ./files/snmpd.init $(1)/etc/init.d/snmpd
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
|
@ -234,7 +231,6 @@ define Package/snmpd/install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/snmpd-static/conffiles
|
define Package/snmpd-static/conffiles
|
||||||
/etc/default/snmpd
|
|
||||||
/etc/config/snmpd
|
/etc/config/snmpd
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -243,8 +239,6 @@ define Package/snmpd-static/install
|
||||||
$(INSTALL_DATA) ./files/snmpd.conf $(1)/etc/config/snmpd
|
$(INSTALL_DATA) ./files/snmpd.conf $(1)/etc/config/snmpd
|
||||||
$(INSTALL_DIR) $(1)/etc/snmp
|
$(INSTALL_DIR) $(1)/etc/snmp
|
||||||
ln -sf /var/run/snmpd.conf $(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_DIR) $(1)/etc/init.d
|
||||||
$(INSTALL_BIN) ./files/snmpd.init $(1)/etc/init.d/snmpd
|
$(INSTALL_BIN) ./files/snmpd.init $(1)/etc/init.d/snmpd
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(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
|
# Copyright (C) 2008 OpenWrt.org
|
||||||
START=50
|
START=50
|
||||||
|
|
||||||
DEFAULT=/etc/default/snmpd
|
OPTIONS="-Lf /dev/null -p /var/run/snmpd.pid"
|
||||||
LIB_D=/var/lib/snmp
|
LIB_D=/var/lib/snmp
|
||||||
LOG_D=/var/log
|
LOG_D=/var/log
|
||||||
RUN_D=/var/run
|
RUN_D=/var/run
|
||||||
|
@ -148,7 +148,6 @@ start() {
|
||||||
config_foreach snmpd_exec_add exec
|
config_foreach snmpd_exec_add exec
|
||||||
config_foreach snmpd_disk_add disk
|
config_foreach snmpd_disk_add disk
|
||||||
|
|
||||||
[ -f $DEFAULT ] && . $DEFAULT
|
|
||||||
$DEBUG /usr/sbin/snmpd $OPTIONS
|
$DEBUG /usr/sbin/snmpd $OPTIONS
|
||||||
}
|
}
|
||||||
stop() {
|
stop() {
|
||||||
|
|
Loading…
Reference in New Issue