diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-10-14 11:45:17 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-10-27 17:11:30 -0500 |
commit | fb100420fd6d54d5e86bf090f1123636cd2dc4e6 (patch) | |
tree | 5252950fb3d4ef445602b6aeb804040deae9aa82 /templates/shutdown | |
parent | 8babe163cc1bc84165cc19a6e02022522b3d3439 (diff) | |
download | vyatta-op-fb100420fd6d54d5e86bf090f1123636cd2dc4e6.tar.gz vyatta-op-fb100420fd6d54d5e86bf090f1123636cd2dc4e6.zip |
Bugfix 7557: Move shutdown to poweroff, change confirmation from default in the affirmative to defualt in the negative.
(cherry picked from commit 54c32901389933b1830404f173b338f885add043)
Diffstat (limited to 'templates/shutdown')
-rw-r--r-- | templates/shutdown/at/node.def | 1 | ||||
-rw-r--r-- | templates/shutdown/at/node.tag/node.def | 6 | ||||
-rw-r--r-- | templates/shutdown/cancel/node.def | 2 | ||||
-rw-r--r-- | templates/shutdown/node.def | 9 |
4 files changed, 0 insertions, 18 deletions
diff --git a/templates/shutdown/at/node.def b/templates/shutdown/at/node.def deleted file mode 100644 index baa0023..0000000 --- a/templates/shutdown/at/node.def +++ /dev/null @@ -1 +0,0 @@ -help: Shutdown at a specific time diff --git a/templates/shutdown/at/node.tag/node.def b/templates/shutdown/at/node.tag/node.def deleted file mode 100644 index 3360f88..0000000 --- a/templates/shutdown/at/node.tag/node.def +++ /dev/null @@ -1,6 +0,0 @@ -help: Shutdown the system at a future time -allowed: echo -n '<HH:MM>' '<MMDDYY>' '+MM' -run: if /opt/vyatta/bin/vyatta-gettime.pl $3 >/tmp/shutdown.at - then (sudo /sbin/shutdown -h $3 & - disown %?sudo ) >/dev/null 2>&1 - fi diff --git a/templates/shutdown/cancel/node.def b/templates/shutdown/cancel/node.def deleted file mode 100644 index 3095c66..0000000 --- a/templates/shutdown/cancel/node.def +++ /dev/null @@ -1,2 +0,0 @@ -help: Cancel a pending shutdown -run: sudo /sbin/shutdown -c diff --git a/templates/shutdown/node.def b/templates/shutdown/node.def deleted file mode 100644 index 81cbc5f..0000000 --- a/templates/shutdown/node.def +++ /dev/null @@ -1,9 +0,0 @@ -help: Shutdown the system -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 - |