summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrividya0208 <a.srividya@vyos.io>2021-10-04 09:18:04 -0400
committerChristian Poessinger <christian@poessinger.com>2021-10-04 19:41:55 +0200
commit96f685de6d45b0ca376ad87b7d33d07de0da8b9d (patch)
tree4a635b06814470590980bc191d74204f1f4b4521
parent68fbc0c20a2b1c92481a9028dd7d21970d4e997b (diff)
downloadvyatta-cfg-96f685de6d45b0ca376ad87b7d33d07de0da8b9d.tar.gz
vyatta-cfg-96f685de6d45b0ca376ad87b7d33d07de0da8b9d.zip
poweroff: T3888: correction of error message
A proper message is added i.e. Exit from configure mode before shutting down. for the poweroff command when executed from the config mode. (cherry picked from commit b53bdbbf465a3903df2723c48077b20c9428fdb0)
-rw-r--r--functions/interpreter/vyatta-cfg-run5
1 files changed, 5 insertions, 0 deletions
diff --git a/functions/interpreter/vyatta-cfg-run b/functions/interpreter/vyatta-cfg-run
index d1aed3a..5e0ce42 100644
--- a/functions/interpreter/vyatta-cfg-run
+++ b/functions/interpreter/vyatta-cfg-run
@@ -199,6 +199,11 @@ reboot ()
echo "Exit from configure mode before rebooting."
}
+poweroff ()
+{
+ echo "Exit from configure mode before shutting down."
+}
+
vyatta_config_rollback ()
{
if [ $# != 1 ]; then