aboutsummaryrefslogtreecommitdiff
path: root/init.d/powerd.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-04-27 07:51:18 +0000
committerRoy Marples <roy@marples.name>2009-04-27 07:51:18 +0000
commite70a1429564a8fce5036c351b010a47dbb6c28b7 (patch)
treea1fc0f75a53041771bc9054fdab517ac32b3d79a /init.d/powerd.in
parenteaa32c75c9bba7af0ec842d82f56a6862bbc83db (diff)
Style.
Diffstat (limited to 'init.d/powerd.in')
-rw-r--r--init.d/powerd.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/init.d/powerd.in b/init.d/powerd.in
index 1c2d8456..d3ea4ded 100644
--- a/init.d/powerd.in
+++ b/init.d/powerd.in
@@ -1,9 +1,9 @@
#!@PREFIX@/sbin/runscript
-# Copyright 2007-2008 Roy Marples <roy@marples.name>
+# Copyright 2007-2009 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.
command=/usr/sbin/powerd
-command_args=${powerd_args}
+command_args=$powerd_args
pidfile=/var/run/powerd.pid
name="Power Control Daemon"
@@ -17,11 +17,11 @@ depend()
start_pre()
{
- if [ -n "${powerd_battery_mode}" ]; then
- command_args="${command_args} -b ${powerd_battery_mode}"
+ if [ -n "$powerd_battery_mode" ]; then
+ command_args="$command_args -b $powerd_battery_mode"
fi
if [ -n "${powerd_ac_mode}" ]; then
- command_args="${command_args} -a ${powerd_ac_mode}"
+ command_args="$command_args -a $powerd_ac_mode"
fi
}
@@ -29,7 +29,7 @@ stop_post()
{
local level=$(sysctl -n dev.cpu.0.freq_levels |
sed -e 's:/.*::')
- if [ -n "${level}" ]; then
- sysctl dev.cpu.0.freq="${level}" >/dev/null
+ if [ -n "$level" ]; then
+ sysctl dev.cpu.0.freq="$level" >/dev/null
fi
}