# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ S=${WORKDIR} DESCRIPTION="Script to control laptop mode" HOMEPAGE="http://www.kernel.org" SRC_URI="" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="" RDEPEND="virtual/linux-sources sys-apps/sed sys-apps/hdparm" src_unpack() { return } src_compile() { return } src_install() { dodir /etc/conf.d insinto /etc/conf.d newins ${FILESDIR}/laptop-mode.conf laptop-mode dodir /etc/init.d exeinto /etc/init.d newexe ${FILESDIR}/laptop-mode.init laptop-mode } pkg_postinst() { if [ ! -e /proc/sys/vm/laptop_mode ] then echo ewarn "The current kernel is not configured with support for laptop-mode." ewarn "Please apply the laptop_mode patch if needed and reconfigure" ewarn "your kernel". echo fi }