diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-05-06 13:27:39 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-05-06 13:27:39 -0500 |
commit | 0c519fbaacd7a7ef816e0250f4ae92fa05227089 (patch) | |
tree | 38d882e323e5227f12b726b44476b71dff07781a /templates | |
parent | 86a7354d70cf53fe8f284b9f300507d5f90e298a (diff) | |
parent | 0ead82c97e51e16ddc7d2eeba6f5dd30aac7466a (diff) | |
download | vyatta-op-0c519fbaacd7a7ef816e0250f4ae92fa05227089.tar.gz vyatta-op-0c519fbaacd7a7ef816e0250f4ae92fa05227089.zip |
Merge branch 'napa' of git.vyatta.com:/git/vyatta-op into napa
Diffstat (limited to 'templates')
-rw-r--r-- | templates/shutdown/node.def | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/templates/shutdown/node.def b/templates/shutdown/node.def index 4185f40..81cbc5f 100644 --- a/templates/shutdown/node.def +++ b/templates/shutdown/node.def @@ -1,3 +1,9 @@ help: Shutdown the system -run: ${vyatta_bindir}/yesno -y "Proceed with shutdown? [confirm]" \ - && sudo /sbin/shutdown -h now +run: if [ "$VYATTA_PROCESS_CLIENT" == "gui2_rest" ] + then + sudo /sbin/shutdown -h now + else + ${vyatta_bindir}/yesno -y "Proceed with shutdown? [confirm]" \ + && sudo /sbin/shutdown -h now + fi + |