From abc2986d38f4b6f7a7ccc0fd3fb10e4f21652209 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 28 Jul 2010 10:22:26 -0700 Subject: Ignore run_init unless running in selinux --- etc/bash_completion.d/20vyatta-cfg | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'etc/bash_completion.d') diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg index b36c3cf..d8b59e9 100755 --- a/etc/bash_completion.d/20vyatta-cfg +++ b/etc/bash_completion.d/20vyatta-cfg @@ -1395,6 +1395,11 @@ set_config_ps1 '' alias set=/opt/vyatta/sbin/my_set alias delete=/opt/vyatta/sbin/my_delete +# ignore run_init unless selinux is enabled +if ! -d /selinux; then + alias run_init= +fi + export VYATTA_COMP_LINE="" # readline bindings -- cgit v1.2.3