summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2005-12-06 01:19:57 +0100
committermaximilian attems <maks@debian.org>2005-12-06 01:19:57 +0100
commitde53fe8336d09076a1330b7d5793689e587bcd1c (patch)
treed38bf22920aff931ebaae8edeca2dd61216efc51 /hooks
parent94cdc6efb0303ed4d3db0c7ebd15d08dd935957c (diff)
downloadinitramfs-tools-de53fe8336d09076a1330b7d5793689e587bcd1c.tar.gz
initramfs-tools-de53fe8336d09076a1330b7d5793689e587bcd1c.zip
fix hooks/kernelextras not include current dir with wildcard.
break out of loop on the '*' case.
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/kernelextras8
1 files changed, 4 insertions, 4 deletions
diff --git a/hooks/kernelextras b/hooks/kernelextras
index df38884..33e6cb0 100755
--- a/hooks/kernelextras
+++ b/hooks/kernelextras
@@ -19,16 +19,16 @@ esac
. /usr/share/initramfs-tools/hook-functions
-if [ ! -d ${MODULESDIR}/initrd ]; then
- exit 0
-fi
-
fbcon=n
+set -x
for x in ${MODULESDIR}/initrd/*; do
x=${x##*/}
x=${x%.*}
case ${x} in
+ '*')
+ break
+ ;;
*fb)
fbcon=y
;;