Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=wipv.git;a=commitdiff;h=5d929db7ac026acb65af797f54a1f2447e687e71

commit 5d929db7ac026acb65af797f54a1f2447e687e71
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Tue Sep 7 18:26:14 2010 +0000

irqbalance-0.55-5-i686
*added rc status

diff --git a/source/apps/irqbalance/FrugalBuild 
b/source/apps/irqbalance/FrugalBuild
index 818bcd3..d35d430 100644
--- a/source/apps/irqbalance/FrugalBuild
+++ b/source/apps/irqbalance/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=irqbalance
pkgver=0.55
-pkgrel=4
+pkgrel=5
pkgdesc="Distributes interrupts over the processors and cores you have."
url="http://irqbalance.org/";
depends=('glib2>=2.16.4-2')
@@ -20,7 +20,7 @@ sha1sums=('9073e1dbb48e7c7bf1f4850e988d8f74e8a35761' \
'4e7c38138748caf8b8ba06cf0538eb681871b485' \
'aad4efeb5d9ad89d3f340fba4e54eaf00f135420' \
'89d90679c9cd737d2b6950bae01659499e24d560' \
-          '30f66b59b7f5cd9d27293f1c262f6898c0475fa6')
+          'def23237b0ad4a3156c54319fd107d8aa624fe3b')

build()
{
diff --git a/source/apps/irqbalance/rc.irqbalance 
b/source/apps/irqbalance/rc.irqbalance
index e50cf27..8e981d6 100644
--- a/source/apps/irqbalance/rc.irqbalance
+++ b/source/apps/irqbalance/rc.irqbalance
@@ -10,9 +10,10 @@
source /lib/initscripts/functions
TEXTDOMAIN=irqbalancer
TEXTDOMAINDIR=/lib/initscripts/messages
+daemon="IRQ Balancer Daemon"

actions=(restart status start stop)
-daemon=$"IRQ Balancer Daemon"
+

[ `grep ^processor /proc/cpuinfo|sed -n 's/.*: \(.*\)/\1/;$ p'` -ge '1' ] || 
exit 0

@@ -42,4 +43,13 @@ rc_stop()
fi
}

+rc_status()
+{
+       msg "$daemon are"
+       if [[ "$(eval $pid)" != "" ]] ; then
+                ok 997
+        else
+                ok 998
+        fi
+}
rc_exec $1
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to