summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-06-11 14:36:35 -0700
committerStig Thormodsrud <stig@vyatta.com>2008-06-11 14:36:35 -0700
commit4f12bac0dd00c1471fa8b1c6cf677e3a7680bc5f (patch)
treeaa928bb102767331c6ad227acb69d029be7781fa
parentbca0ace007667fb9c2e634e0debd120fc58525d4 (diff)
downloadvyatta-cfg-4f12bac0dd00c1471fa8b1c6cf677e3a7680bc5f.tar.gz
vyatta-cfg-4f12bac0dd00c1471fa8b1c6cf677e3a7680bc5f.zip
Block reboot from config mode.
-rwxr-xr-xetc/bash_completion.d/20vyatta-cfg5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg
index fb2b142..102ce8f 100755
--- a/etc/bash_completion.d/20vyatta-cfg
+++ b/etc/bash_completion.d/20vyatta-cfg
@@ -66,6 +66,11 @@ save ()
\"umask 0002 ; ${vyatta_sbindir}/vyatta-save-config.pl $@\""
}
+reboot ()
+{
+ echo "Exit from configure mode before rebooting."
+}
+
declare vyatta_cfg_prompt_level=''
set_config_ps1 ()
{