[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] custom hook functions from /etc/initramfs-tools/hook weren't executed



Signed-off-by: betra <Bernd.Trappe@thinprint.de>

diff --git a/hook-functions b/hook-functions
index 4b49391..714c6c1 100644
--- a/hook-functions
+++ b/hook-functions
@@ -643,6 +643,8 @@ get_source()
 		echo "${initdir}/$1"
 	elif [ -f "${CONFDIR}${scriptdir}/$1" ]; then
 		echo "${CONFDIR}${scriptdir}/$1"
+	elif [ -f "${CONFDIR}/hooks/$1" ]; then
+		echo "${CONFDIR}/hooks/$1"
 	else
 		echo "/usr/share/initramfs-tools${scriptdir}/$1"
 	fi
-- 
2.10.2.windows.1


Reply to: