summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/bash_completion.d/vyatta-cfg6
-rwxr-xr-xscripts/init/vyos-router1
2 files changed, 7 insertions, 0 deletions
diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg
index 5b02d00..da75aa4 100644
--- a/etc/bash_completion.d/vyatta-cfg
+++ b/etc/bash_completion.d/vyatta-cfg
@@ -330,6 +330,12 @@ vyatta_compare_complete ()
COMPREPLY=( "saved " )
eval $restore_shopts
return
+ elif [[ -n "$current_prefix" ]] &&
+ [[ "commands" =~ "$current_prefix" ]] &&
+ [[ $COMP_CWORD -eq 1 ]]; then
+ COMPREPLY=( "commands " )
+ eval $restore_shopts
+ return
elif [ $COMP_CWORD -eq 2 -a -z "${COMP_WORDS[2]}" ]; then
if [[ "saved" =~ "${COMP_WORDS[1]}" ]]; then
echo -e "\nPossible completions:"
diff --git a/scripts/init/vyos-router b/scripts/init/vyos-router
index 31e9528..3283444 100755
--- a/scripts/init/vyos-router
+++ b/scripts/init/vyos-router
@@ -319,6 +319,7 @@ start ()
# As VyOS does not execute commands that are not present in the CLI we call
# the script by hand to have a single source for the login banner and MOTD
${vyos_conf_scripts_dir}/system_console.py || log_failure_msg "could not reset serial console"
+ ${vyos_conf_scripts_dir}/firewall.py || log_failure_msg "could not initiate firewall rules"
${vyos_conf_scripts_dir}/system-login-banner.py || log_failure_msg "could not reset motd and issue files"
${vyos_conf_scripts_dir}/system-option.py || log_failure_msg "could not reset system option files"
${vyos_conf_scripts_dir}/conntrack.py || log_failure_msg "could not reset conntrack subsystem"