diff options
author | srividya0208 <a.srividya@vyos.io> | 2021-10-04 09:18:04 -0400 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2021-10-05 21:02:11 +0700 |
commit | 9063ccfa231415657fe6165eccd3c3c35fa49837 (patch) | |
tree | 3f5d005d7d26e772b755600b9518c772a37b7758 | |
parent | d24d970e15cb883d00fa77c21bde8035c8707783 (diff) | |
download | vyatta-cfg-crux.tar.gz vyatta-cfg-crux.zip |
A proper message is added i.e. Exit from configure mode before shutting down.
for the poweroff command when executed from the config mode.
-rw-r--r-- | functions/interpreter/vyatta-cfg-run | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/functions/interpreter/vyatta-cfg-run b/functions/interpreter/vyatta-cfg-run index 91d26d1..30b466e 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 |