summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-14 16:57:14 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-14 16:57:14 -0700
commited1cac00ffa03350da69718621ebe6186b154f50 (patch)
treef23ddfb53dad46492e12c6fbd759a0c51228992c /templates
parentb3a91f5c323625009895a1b0fd3e4806ba7327de (diff)
downloadvyatta-cfg-quagga-ed1cac00ffa03350da69718621ebe6186b154f50.tar.gz
vyatta-cfg-quagga-ed1cac00ffa03350da69718621ebe6186b154f50.zip
Need sudo to change console settings
Diffstat (limited to 'templates')
-rw-r--r--templates/system/console/powersave/node.def8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/system/console/powersave/node.def b/templates/system/console/powersave/node.def
index e863e020..da014a21 100644
--- a/templates/system/console/powersave/node.def
+++ b/templates/system/console/powersave/node.def
@@ -1,6 +1,6 @@
help: Enable screen blank powersaving on VGA console
-create: setterm -blank 15 -powersave powerdown -powerdown 60 \
- </dev/console >/dev/console 2>&1
-delete: setterm -blank 0 -powersave off -powerdown 0 \
- </dev/console >/dev/console 2>&1
+create: sudo sh -c \
+ "/usr/bin/setterm -blank 15 -powersave powerdown -powerdown 60 </dev/console >/dev/console 2>&1"
+delete: sudo sh -c \
+ "/usr/bin/setterm -blank 0 -powersave off -powerdown 0 </dev/console >/dev/console 2>&1"