summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2005-10-26 09:22:31 +0200
committermaximilian attems <maks@debian.org>2005-10-26 09:22:31 +0200
commit429cd75b35cf6c08aff80aec2aee9fab40eb42a5 (patch)
tree2da6483ede8e1c7728f2f5423736acaa9e2343ff /hooks
parenta62c8eadea176cc83f83cf1eeeca4aabe59e5a95 (diff)
downloadinitramfs-tools-429cd75b35cf6c08aff80aec2aee9fab40eb42a5.tar.gz
initramfs-tools-429cd75b35cf6c08aff80aec2aee9fab40eb42a5.zip
Check for dir ${MODULESDIR}/initrd/, exit if it doesn't exist.
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/kernelextras4
1 files changed, 4 insertions, 0 deletions
diff --git a/hooks/kernelextras b/hooks/kernelextras
index d1b8c34..df38884 100755
--- a/hooks/kernelextras
+++ b/hooks/kernelextras
@@ -19,6 +19,10 @@ esac
. /usr/share/initramfs-tools/hook-functions
+if [ ! -d ${MODULESDIR}/initrd ]; then
+ exit 0
+fi
+
fbcon=n
for x in ${MODULESDIR}/initrd/*; do