summaryrefslogtreecommitdiff
blob: 55a5bf0950589ffb9d8c64dab5e020866eabae3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/neti/files/neti-init,v 1.2 2004/07/14 23:05:29 agriffis Exp $

depend() {
    need net
}

start() {
	ebegin "Starting netiathome"
	start-stop-daemon --start --quiet --exec \
		/usr/bin/tethereal -iany -l -p -tad -V -R"udp||tcp||icmp||igmp" | neti
	eend $?
}

stop() {
	ebegin "Stopping netiathome"
	start-stop-daemon --stop --quiet --exec /usr/bin/tethereal
	eend $?
}