[PATCH] bash-completion: Symlink runuser symlink to su so it gets loaded on demand.

Ville Skyttä
2013-04-07T08:56:14Z

Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
---
bash-completion/Makemodule.am | 3 +++
1 file changed, 3 insertions(+)

diff --git a/bash-completion/Makemodule.am b/bash-completion/Makemodule.am
index 34bdc6c..4c41218 100644
--- a/bash-completion/Makemodule.am
+++ b/bash-completion/Makemodule.am
@@ -98,6 +98,9 @@ endif
if BUILD_SU
dist_bashcompletion_DATA += \
bash-completion/su
+install-data-hook-bashcomp-su::
+ ln -sf su $(DESTDIR)$(bashcompletiondir)/runuser
+INSTALL_DATA_HOOKS += install-data-hook-bashcomp-su
endif
if BUILD_UTMPDUMP
dist_bashcompletion_DATA += \
--
1.7.11.7