diff options
author | James Meyer <james.meyer@operamail.com> | 2010-03-22 17:27:27 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2010-03-22 17:27:27 (GMT) |
commit | e51cf415764a2c267f373965c48eec082ad59d81 (patch) | |
tree | 3b17b5b571cc0bf57e8390bb72b7137d6cdb7b33 /abs/extra-testing/cpufreqd/cpufreqd | |
parent | 13cda940b116339e3d5b5f27e73ad3f8dd2554e9 (diff) | |
download | linhes_pkgbuild-e51cf415764a2c267f373965c48eec082ad59d81.zip linhes_pkgbuild-e51cf415764a2c267f373965c48eec082ad59d81.tar.gz linhes_pkgbuild-e51cf415764a2c267f373965c48eec082ad59d81.tar.bz2 |
cpufreq and utils: intial import
refs 492
Diffstat (limited to 'abs/extra-testing/cpufreqd/cpufreqd')
-rw-r--r-- | abs/extra-testing/cpufreqd/cpufreqd | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/abs/extra-testing/cpufreqd/cpufreqd b/abs/extra-testing/cpufreqd/cpufreqd new file mode 100644 index 0000000..af55456 --- /dev/null +++ b/abs/extra-testing/cpufreqd/cpufreqd @@ -0,0 +1,35 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +PID=`pidof -o %PPID /usr/sbin/cpufreqd` +case "$1" in + start) + stat_busy "Starting cpufreqd" + [ -z "$PID" ] && /usr/sbin/cpufreqd + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon cpufreqd + stat_done + fi + ;; + stop) + stat_busy "Stopping cpufreqd" + [ ! -z "$PID" ] && kill $PID &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon cpufreqd + stat_done + fi + ;; + restart) + $0 stop + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 |