From c095f414f653fa7d11da3fd478218d73101015a7 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 14 Jan 2012 23:57:13 -0500 Subject: mkinitcpio: obsolete install as a buildhook function All official hooks have been using build() for quite some time now. Signed-off-by: Dave Reisner --- mkinitcpio | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/mkinitcpio b/mkinitcpio index 54b39d9..677f608 100755 --- a/mkinitcpio +++ b/mkinitcpio @@ -321,13 +321,7 @@ for hook in ${HOOKS}; do if [[ -r "${INSTDIR}/${hook}" ]]; then . "${INSTDIR}/${hook}" msg2 "Parsing hook: [%s]" "$hook" - if [[ $(type -t install) = 'function' ]]; then - warning "Hook '%s' uses a deprecated 'install' function. This should be renamed 'build'" "$hook" - install - unset install - else - build - fi + build parse_hook else error "Hook '$hook' can not be found." -- cgit v1.2.3-24-g4f1b