summaryrefslogtreecommitdiff
path: root/bash_completion
diff options
context:
space:
mode:
Diffstat (limited to 'bash_completion')
-rw-r--r--bash_completion11
1 files changed, 11 insertions, 0 deletions
diff --git a/bash_completion b/bash_completion
index 6d3ffe2f..d96a7770 100644
--- a/bash_completion
+++ b/bash_completion
@@ -106,6 +106,17 @@ _userland()
[[ $userland == $1 ]]
}
+# This function sets correct SysV init directory
+#
+_sysvdirs()
+{
+ sysvdirs=( )
+ [[ -d /etc/rc.d/init.d ]] && sysvdirs+=( /etc/rc.d/init.d )
+ [[ -d /etc/init.d ]] && sysvdirs+=( /etc/init.d )
+ # Slackware uses /etc/rc.d
+ [[ -f /etc/slackware-version ]] && sysvdirs=( /etc/rc.d )
+}
+
# This function checks whether we have a given program on the system.
#
_have()