| Summary: | bwbar-1.2.2.ebuild (New package) | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Frank Benkstein <benkstein> |
| Component: | New packages | Assignee: | Default Assignee for New Packages <maintainer-wanted> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | benkstein, duncan, jva-misc, netmon |
| Priority: | High | Keywords: | EBUILD |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | http://www.kernel.org/ | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | bwbar-1.2.2.ebuild | ||
|
Description
Frank Benkstein
2004-07-24 08:11:25 UTC
Created attachment 36062 [details]
bwbar-1.2.2.ebuild
I had some trouble before this work so maybe this helps somebody else:
Put this in /etc/conf.d/net
<code>
postup() {
case "$1" in
eth0)
ebegin " Starting bwbar for $1"
start-stop-daemon --start --quiet --oknodo --exec /usr/bin/bwbar --pidfile /var/run/bwbar-"$1"-in.pid \
--background --make-pidfile\
-- --input --interval 2 --height 10 --kbps \
--text-file /var/www/localhost/htdocs/ubar-$1-in.txt \
--png-file /var/www/localshost/htdocs/ubar-$1-in.png \
$1 100
start-stop-daemon --start --quiet --oknodo --exec /usr/bin/bwbar --pidfile /var/run/bwbar-"$1"-out.pid \
--background --make-pidfile\
-- --output --interval 2 --height 10 --kbps \
--text-file /var/www/localhost/htdocs/ubar-$1-out.txt \
--png-file /var/www/localhost/htdocs/ubar-$1-out.png \
$1 100
eend $?
;;
esac
}
predown() {
case "$1" in
eth0)
ebegin " Stopping bwbar for $1"
start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/bwbar-"$1"-in.pid
start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/bwbar-"$1"-out.pid
eend $?
;;
esac
}
</code>
*** Bug 83105 has been marked as a duplicate of this bug. *** In cvs. Thanks for reporting! |