summaryrefslogtreecommitdiff
path: root/templates/shutdown
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-19 15:23:17 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-19 15:38:16 -0700
commit012af79e9182d097ae19ba318e7788a410a6f41a (patch)
treee3b3752ecb05affffaf4ffb6ce6c4fb34b45a01f /templates/shutdown
parent21ecbf4cf34eac189de6fbeae15572ce945e81a9 (diff)
downloadvyatta-op-012af79e9182d097ae19ba318e7788a410a6f41a.tar.gz
vyatta-op-012af79e9182d097ae19ba318e7788a410a6f41a.zip
Fix shutdown at to return to prompt
Bug 4240
Diffstat (limited to 'templates/shutdown')
-rw-r--r--templates/shutdown/at/node.tag/node.def3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/shutdown/at/node.tag/node.def b/templates/shutdown/at/node.tag/node.def
index 8760fea..3360f88 100644
--- a/templates/shutdown/at/node.tag/node.def
+++ b/templates/shutdown/at/node.tag/node.def
@@ -1,5 +1,6 @@
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 nohup sudo /sbin/shutdown -h $3 </dev/null >/dev/null 2>&1
+ then (sudo /sbin/shutdown -h $3 &
+ disown %?sudo ) >/dev/null 2>&1
fi