From 012af79e9182d097ae19ba318e7788a410a6f41a Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 19 Mar 2009 15:23:17 -0700 Subject: Fix shutdown at to return to prompt Bug 4240 --- templates/shutdown/at/node.tag/node.def | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 '' '' '+MM' run: if /opt/vyatta/bin/vyatta-gettime.pl $3 >/tmp/shutdown.at - then nohup sudo /sbin/shutdown -h $3 /dev/null 2>&1 + then (sudo /sbin/shutdown -h $3 & + disown %?sudo ) >/dev/null 2>&1 fi -- cgit v1.2.3