summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-28 10:22:26 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-28 10:22:26 -0700
commitabc2986d38f4b6f7a7ccc0fd3fb10e4f21652209 (patch)
tree9d34a7b6d88f279d0f1ba2ce77d87271d44fc6ee /etc
parent0247864ef578ac05bbac8dc5175e674ce7b82714 (diff)
downloadvyatta-cfg-abc2986d38f4b6f7a7ccc0fd3fb10e4f21652209.tar.gz
vyatta-cfg-abc2986d38f4b6f7a7ccc0fd3fb10e4f21652209.zip
Ignore run_init unless running in selinux
Diffstat (limited to 'etc')
-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 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