diff options
author | An-Cheng Huang <ancheng@sydney.vyatta.com> | 2007-10-24 10:01:04 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@sydney.vyatta.com> | 2007-10-24 10:01:04 -0700 |
commit | 1229e8c6f130c62c42900f424a772d4e9c5e8ef5 (patch) | |
tree | a89f7b29d4a7e62c803f3b0306922777681f319a /templates/system/options | |
parent | b1fcb904eab1425d349fd7ab8d65b39c1bfb2e3f (diff) | |
download | vyatta-cfg-system-1229e8c6f130c62c42900f424a772d4e9c5e8ef5.tar.gz vyatta-cfg-system-1229e8c6f130c62c42900f424a772d4e9c5e8ef5.zip |
add 'sudo' for 'system' and 'service/ssh' configuration commands.
Diffstat (limited to 'templates/system/options')
-rw-r--r-- | templates/system/options/reboot-on-panic/node.def | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/templates/system/options/reboot-on-panic/node.def b/templates/system/options/reboot-on-panic/node.def index d84abc74..425f5a76 100644 --- a/templates/system/options/reboot-on-panic/node.def +++ b/templates/system/options/reboot-on-panic/node.def @@ -1,16 +1,10 @@ type: bool help: "Configure if kernel panic causes reboot" default: true -create: "sh -c \"if [ x$(@) == xfalse ]; \ +update: "sudo sh -c \"if [ x$(@) == xfalse ]; \ then \ echo 0 > /proc/sys/kernel/panic; \ else \ echo 60 > /proc/sys/kernel/panic; \ fi\" " -update: "sh -c \"if [ x$(@) == xfalse ]; \ -then \ - echo 0 > /proc/sys/kernel/panic; \ -else \ - echo 60 > /proc/sys/kernel/panic; \ -fi\" " -delete: "sh -c \"echo 60 > /proc/sys/kernel/panic\" " +delete: "sudo sh -c \"echo 60 > /proc/sys/kernel/panic\" " |