~ubuntu-branches/ubuntu/saucy/cpufreqd/saucy-updates

« back to all changes in this revision

Viewing changes to debian/config

  • Committer: Bazaar Package Importer
  • Author(s): Mattia Dongili
  • Date: 2006-12-17 17:13:57 UTC
  • mfrom: (3.1.5 feisty)
  • Revision ID: james.westby@ubuntu.com-20061217171357-atrpxy6jqdq846jm
Tags: 2.2.1-2
Provide a more conservative config files, users owning non ondemand
capable CPU have complained. (Closes: #400580)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
 
3
 
set -e
4
 
 
5
 
# Source debconf library.
6
 
. /usr/share/debconf/confmodule
7
 
 
8
 
if [ -d /sys/devices/system/cpu/cpu0/cpufreq ] || 
9
 
   [ -f /proc/cpufreq ] ; 
10
 
  then
11
 
    
12
 
    if !([ -d /proc/pmu ] || [ -f /proc/apm ] || [ -d /proc/acpi ]) ; then
13
 
      # debconf
14
 
      # warn the user about not being able
15
 
      # to determine PM driver to use
16
 
      db_input medium cpufreqd/no_pm || true
17
 
      db_go || true
18
 
      # abort
19
 
      exit 0 
20
 
    fi
21
 
 
22
 
else
23
 
 
24
 
  # debconf
25
 
  # warn the user about not being able
26
 
  # to determine cpufreq interface
27
 
  db_input medium cpufreqd/no_procfs_sysfs || true
28
 
  db_go || true
29
 
 
30
 
fi
31
 
 
32
 
exit 0