mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 18:07:14 +08:00
laptop-mode-tools rebuild for hdparm
This commit is contained in:
parent
98b3f5562a
commit
e778329ee0
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
pkgname=laptop-mode-tools
|
pkgname=laptop-mode-tools
|
||||||
pkgver=1.57
|
pkgver=1.57
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="Laptop mode is a kernel mode that allows you to extend the battery life of your laptop"
|
pkgdesc="Laptop mode is a kernel mode that allows you to extend the battery life of your laptop"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="http://www.samwel.tk/laptop_mode/"
|
url="http://www.samwel.tk/laptop_mode/"
|
||||||
@ -39,7 +39,7 @@ backup=(etc/laptop-mode/conf.d/ac97-powersave.conf
|
|||||||
etc/laptop-mode/laptop-mode.conf
|
etc/laptop-mode/laptop-mode.conf
|
||||||
etc/laptop-mode/lm-profiler.conf)
|
etc/laptop-mode/lm-profiler.conf)
|
||||||
source=(http://www.samwel.tk/laptop_mode/tools/downloads/${pkgname}_${pkgver}.tar.gz laptop-mode)
|
source=(http://www.samwel.tk/laptop_mode/tools/downloads/${pkgname}_${pkgver}.tar.gz laptop-mode)
|
||||||
md5sums=('1d9e4f4e3ff3f16d298e1653483f3f58' 'fe47441f14e2b39c2fe473685f04395f')
|
md5sums=('1d9e4f4e3ff3f16d298e1653483f3f58' 'bae8d721e660fe420c9769a6db6856af')
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}/${pkgname}_${pkgver}"
|
cd "${srcdir}/${pkgname}_${pkgver}"
|
||||||
|
@ -5,9 +5,6 @@
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
if [ -x /etc/rc.d/acpid ]; then
|
|
||||||
ck_daemon acpid && /etc/rc.d/acpid start
|
|
||||||
fi
|
|
||||||
stat_busy "Starting laptop-mode"
|
stat_busy "Starting laptop-mode"
|
||||||
[ ! -d /var/run/laptop-mode-tools ] && install -d /var/run/laptop-mode-tools
|
[ ! -d /var/run/laptop-mode-tools ] && install -d /var/run/laptop-mode-tools
|
||||||
touch /var/run/laptop-mode-tools/enabled
|
touch /var/run/laptop-mode-tools/enabled
|
||||||
@ -57,4 +54,4 @@ case "$1" in
|
|||||||
echo "Usage: $0 {stop|start|restart|status}"
|
echo "Usage: $0 {stop|start|restart|status}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
exit 0
|
exit 0
|
Loading…
Reference in New Issue
Block a user