From d96b975b7a4f73c16a8bacd4fcbe2bff44c9b24a Mon Sep 17 00:00:00 2001 From: general-shift Date: Fri, 30 Jun 2017 11:26:34 -0500 Subject: [PATCH] Added ./mycroft.sh restart functionality --- mycroft.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mycroft.sh b/mycroft.sh index 57544bbf99..ac36f9814f 100755 --- a/mycroft.sh +++ b/mycroft.sh @@ -157,6 +157,17 @@ case "$1" in stop-mycroft cli ;; +"restart") + case "$2" in + ""|"-v"|"--voice"|"-c"|"--cli"|"-d"|"--debug") + $0 stop + $0 start $2 + ;; + *) + usage-exit + ;; + esac + ;; *) usage-exit ;;