summaryrefslogtreecommitdiff
path: root/functions/interpreter
diff options
context:
space:
mode:
authorsrividya0208 <a.srividya@vyos.io>2021-10-04 09:18:04 -0400
committersrividya0208 <a.srividya@vyos.io>2021-10-04 09:18:04 -0400
commitb53bdbbf465a3903df2723c48077b20c9428fdb0 (patch)
treedcbc4b8a7aaaaf2bb7c6815dd1826bac2e62cae3 /functions/interpreter
parentd27f06b250792d57c473e3dc491ee75d99cbfd26 (diff)
downloadvyatta-cfg-b53bdbbf465a3903df2723c48077b20c9428fdb0.tar.gz
vyatta-cfg-b53bdbbf465a3903df2723c48077b20c9428fdb0.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.
Diffstat (limited to 'functions/interpreter')
-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