mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
community/linux-tools to 3.5-5
This commit is contained in:
parent
952e037440
commit
76d7e2be6a
2 changed files with 1 additions and 42 deletions
community/linux-tools
|
@ -7,7 +7,7 @@
|
||||||
pkgbase=linux-tools
|
pkgbase=linux-tools
|
||||||
pkgname=('perf' 'cpupower' 'usbip')
|
pkgname=('perf' 'cpupower' 'usbip')
|
||||||
pkgver=3.5
|
pkgver=3.5
|
||||||
pkgrel=4
|
pkgrel=5
|
||||||
license=('GPL2')
|
license=('GPL2')
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
url='http://www.kernel.org'
|
url='http://www.kernel.org'
|
||||||
|
@ -28,7 +28,6 @@ source=("http://ftp.kernel.org/pub/linux/kernel/v3.x/linux-$pkgver.tar.xz"
|
||||||
'cpupower.rc'
|
'cpupower.rc'
|
||||||
'cpupower.systemd'
|
'cpupower.systemd'
|
||||||
'cpupower.service'
|
'cpupower.service'
|
||||||
'cpupower.pmutils'
|
|
||||||
'usbipd.conf'
|
'usbipd.conf'
|
||||||
'usbipd.rc'
|
'usbipd.rc'
|
||||||
'usbipd.service')
|
'usbipd.service')
|
||||||
|
@ -37,7 +36,6 @@ md5sums=('24153eaaa81dedc9481ada8cd9c3b83d'
|
||||||
'1d9214637968b91706b6e616a100d44b'
|
'1d9214637968b91706b6e616a100d44b'
|
||||||
'c0d17b5295fe964623c772a2dd981771'
|
'c0d17b5295fe964623c772a2dd981771'
|
||||||
'2450e8ff41b30eb58d43b5fffbfde1f4'
|
'2450e8ff41b30eb58d43b5fffbfde1f4'
|
||||||
'1c2743ce57b56e16feec86a8b49f3391'
|
|
||||||
'e8fac9c45a628015644b4150b139278a'
|
'e8fac9c45a628015644b4150b139278a'
|
||||||
'8a3831d962ff6a9968c0c20fd601cdec'
|
'8a3831d962ff6a9968c0c20fd601cdec'
|
||||||
'ba7c1c513314dd21fb2334fb8417738f')
|
'ba7c1c513314dd21fb2334fb8417738f')
|
||||||
|
@ -109,8 +107,6 @@ package_cpupower() {
|
||||||
install -Dm 644 $pkgname.conf "$pkgdir/etc/conf.d/$pkgname"
|
install -Dm 644 $pkgname.conf "$pkgdir/etc/conf.d/$pkgname"
|
||||||
install -Dm 644 $pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
|
install -Dm 644 $pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
|
||||||
install -Dm 755 $pkgname.systemd "$pkgdir/usr/lib/systemd/scripts/$pkgname"
|
install -Dm 755 $pkgname.systemd "$pkgdir/usr/lib/systemd/scripts/$pkgname"
|
||||||
# install pm-utils hook
|
|
||||||
install -Dm 755 $pkgname.pmutils "$pkgdir/usr/lib/pm-utils/power.d/$pkgname"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package_usbip() {
|
package_usbip() {
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
[[ -x /usr/bin/cpupower ]] || exit $NA
|
|
||||||
|
|
||||||
CPUPOWER_GOVERNOR_AC=${CPUPOWER_GOVERNOR_AC:-ondemand}
|
|
||||||
CPUPOWER_GOVERNOR_BAT=${CPUPOWER_GOVERNOR_BAT:-conservative}
|
|
||||||
|
|
||||||
help() {
|
|
||||||
cat <<EOF
|
|
||||||
--------
|
|
||||||
$0: Select cpupower frequency governor.
|
|
||||||
|
|
||||||
Parameters:
|
|
||||||
CPUPOWER_GOVERNOR_AC = Governor to use on AC.
|
|
||||||
Defaults to ondemand.
|
|
||||||
|
|
||||||
CPUPOWER_GOVERNOR_BAT = Governor to use on battery.
|
|
||||||
Defaults to conservative.
|
|
||||||
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
|
|
||||||
cpupow() {
|
|
||||||
printf 'Setting cpupower frequency governor to %s...' "$1"
|
|
||||||
cpupower -c all frequency-set -g "$1"
|
|
||||||
}
|
|
||||||
|
|
||||||
case $1 in
|
|
||||||
true) cpupow "$CPUPOWER_GOVERNOR_BAT" ;;
|
|
||||||
false) cpupow "$CPUPOWER_GOVERNOR_AC" ;;
|
|
||||||
help) help;;
|
|
||||||
*) exit $NA ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
# vim:set ts=2 sw=2 ft=sh et:
|
|
Loading…
Reference in a new issue