[package] add arpwatch init script (#6384)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@18973 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a96d5be59a
commit
c6d08a9a62
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=arpwatch
|
||||
PKG_VERSION:=2.1a15
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=ftp://ftp.free.fr/.mirrors1/ftp.gentoo.org/distfiles/
|
||||
@ -52,6 +52,8 @@ define Package/arpwatch/install
|
||||
$(CP) $(PKG_BUILD_DIR)/arp.dat $(1)/etc/arpwatch/
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/arp{watch,snmp} $(1)/usr/sbin/
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/arpwatch.init $(1)/etc/init.d/arpwatch
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,arpwatch))
|
||||
|
10
net/arpwatch/files/arpwatch.init
Normal file
10
net/arpwatch/files/arpwatch.init
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
START=90
|
||||
|
||||
start () {
|
||||
arpwatch -f /etc/arpwatch/arp.dat -i br-lan
|
||||
}
|
||||
|
||||
stop() {
|
||||
killall arpwatch
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user