diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2008-05-31 14:48:07 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2008-05-31 14:48:07 -0700 |
commit | 18dd1b542f69528ac40ade79ee10a6ac77fed9c4 (patch) | |
tree | 194c818e0e03fa737fe759773bdcddc327f1cf6c /templates/reboot | |
parent | 5cc881e0cc7eccd422b1dce2980bb69e8fe0f709 (diff) | |
download | vyatta-op-18dd1b542f69528ac40ade79ee10a6ac77fed9c4.tar.gz vyatta-op-18dd1b542f69528ac40ade79ee10a6ac77fed9c4.zip |
Fix 88: Feature Request: Reboot Command (add confirmation)
Diffstat (limited to 'templates/reboot')
-rw-r--r-- | templates/reboot/.at/node.def | 1 | ||||
-rw-r--r-- | templates/reboot/.at/node.tag/node.def | 3 | ||||
-rw-r--r-- | templates/reboot/.cancel/node.def | 2 | ||||
-rw-r--r-- | templates/reboot/node.def | 2 |
4 files changed, 7 insertions, 1 deletions
diff --git a/templates/reboot/.at/node.def b/templates/reboot/.at/node.def new file mode 100644 index 0000000..9944ff7 --- /dev/null +++ b/templates/reboot/.at/node.def @@ -0,0 +1 @@ +help: Reboot at a specific time diff --git a/templates/reboot/.at/node.tag/node.def b/templates/reboot/.at/node.tag/node.def new file mode 100644 index 0000000..62f39f9 --- /dev/null +++ b/templates/reboot/.at/node.tag/node.def @@ -0,0 +1,3 @@ +help: Reboot the system at a future time +allowed: echo -n '<HH:MM>' '<MMDDYY>' '<midnight>' '<noon>' +run: sudo /opt/vyatta/bin/sudo-users/vyatta-reboot.pl --action reboot_at --at_time "$3" diff --git a/templates/reboot/.cancel/node.def b/templates/reboot/.cancel/node.def new file mode 100644 index 0000000..110f595 --- /dev/null +++ b/templates/reboot/.cancel/node.def @@ -0,0 +1,2 @@ +help: Cancel a pending reboot +run: sudo /opt/vyatta/bin/sudo-users/vyatta-reboot.pl --action reboot_cancel diff --git a/templates/reboot/node.def b/templates/reboot/node.def index 57b4c9e..e65917d 100644 --- a/templates/reboot/node.def +++ b/templates/reboot/node.def @@ -1,2 +1,2 @@ help: Reboot the system -run: sudo /sbin/reboot +run: sudo /opt/vyatta/bin/sudo-users/vyatta-reboot.pl --action reboot |