summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2004-05-12 04:58:49 +0000
committerDaniel Black <dragonheart@gentoo.org>2004-05-12 04:58:49 +0000
commitf7b623903f6df95db39f5a7c63a24ca7494031a1 (patch)
treeb8c3a0a24976930f5f93a0fa77fb3e219088348b /app-admin/powertweak
parentver bump (diff)
downloadgentoo-2-f7b623903f6df95db39f5a7c63a24ca7494031a1.tar.gz
gentoo-2-f7b623903f6df95db39f5a7c63a24ca7494031a1.tar.bz2
gentoo-2-f7b623903f6df95db39f5a7c63a24ca7494031a1.zip
Fixed initscript to insert module as required. Bug #48837 by Rico Schiekel <_fire@web.de> describes the problem
Diffstat (limited to 'app-admin/powertweak')
-rw-r--r--app-admin/powertweak/ChangeLog6
-rw-r--r--app-admin/powertweak/files/powertweakd.rc615
-rw-r--r--app-admin/powertweak/metadata.xml9
3 files changed, 28 insertions, 2 deletions
diff --git a/app-admin/powertweak/ChangeLog b/app-admin/powertweak/ChangeLog
index 24180ac3de92..bdb2a47a3ff6 100644
--- a/app-admin/powertweak/ChangeLog
+++ b/app-admin/powertweak/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-admin/powertweak
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/powertweak/ChangeLog,v 1.15 2004/04/26 15:21:23 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/powertweak/ChangeLog,v 1.16 2004/05/12 04:58:49 dragonheart Exp $
+
+ 12 May 2004; Daniel Black <dragonheart@gentoo.org> files/powertweakd.rc6:
+ Fixed initscript to insert module as required. Bug #48837 by Rico Schiekel
+ <_fire@web.de> describes the problem
26 Apr 2004; Aron Griffis <agriffis@gentoo.org> powertweak-0.99.4.ebuild:
Add die following econf for bug 48950
diff --git a/app-admin/powertweak/files/powertweakd.rc6 b/app-admin/powertweak/files/powertweakd.rc6
index 1f0d91c69c82..1413782ee8ba 100644
--- a/app-admin/powertweak/files/powertweakd.rc6
+++ b/app-admin/powertweak/files/powertweakd.rc6
@@ -1,10 +1,23 @@
#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/powertweak/files/powertweakd.rc6,v 1.4 2003/08/16 06:33:09 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/powertweak/files/powertweakd.rc6,v 1.5 2004/05/12 04:58:49 dragonheart Exp $
start() {
ebegin "Starting powertweakd"
+ if [ -f /proc/modules ]
+ then
+ if [ -z "`grep '^cpufreq_userspace ' /proc/modules`" ]
+ then
+ modprobe cpufreq_userspace
+ if [ $? -ne 0 ]
+ then
+ eerror "Could not insert module - cpufreq_userspace"
+ eend 1
+ fi
+ fi
+ fi
+
start-stop-daemon --start --quiet --exec /usr/sbin/powertweakd -- -p /var/run/powertweakd.pid
eend $?
}
diff --git a/app-admin/powertweak/metadata.xml b/app-admin/powertweak/metadata.xml
new file mode 100644
index 000000000000..d8b96be3c5cd
--- /dev/null
+++ b/app-admin/powertweak/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>bug-wranglers@gentoo.org</email>
+ <description>This package lacks a primary herd or maintainer.</description>
+ </maintainer>
+</pkgmetadata>