summaryrefslogtreecommitdiff
path: root/hooks/kernelextras
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/kernelextras')
-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
;;