/[packages]/updates/1/cpufreq/current/SOURCES/cpufreq-1.0-mga-fix-condrestart-and-status.patch
ViewVC logotype

Contents of /updates/1/cpufreq/current/SOURCES/cpufreq-1.0-mga-fix-condrestart-and-status.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 223552 - (show annotations) (download)
Thu Mar 15 22:58:12 2012 UTC (9 years, 4 months ago) by kamil
File size: 579 byte(s)
SILENT: new file ./SOURCES/cpufreq-1.0-mga-fix-condrestart-and-status.patch
1 Index: cpufreq.init
2 ===================================================================
3 --- cpufreq.init
4 +++ cpufreq.init 2012-03-13 01:27:47.620383965 +0000
5 @@ -37,6 +37,11 @@
6 echo
7 }
8
9 +restart() {
10 + real_stop
11 + start
12 +}
13 +
14 case "$1" in
15 start)
16 start
17 @@ -44,16 +49,15 @@
18 stop)
19 ;;
20 restart|reload)
21 - real_stop
22 - start
23 + restart
24 ;;
25 condrestart)
26 - if [ -f /var/log/subsys/cpufreq ]; then
27 + if [ -f /var/lock/subsys/cpufreq ]; then
28 restart
29 fi
30 ;;
31 status)
32 - [ -f /var/log/subsys/cpufreq ]
33 + [ -f /var/lock/subsys/cpufreq ]
34 RETVAL=$?
35 ;;
36 *)

  ViewVC Help
Powered by ViewVC 1.1.28