From 775e570cd8b8226a7096c9bbf874775a7157ce91 Mon Sep 17 00:00:00 2001 From: Andres Salomon Date: Sun, 15 Feb 2009 16:36:55 -0500 Subject: [PATCH 1/1] add initramfs-tools hooks for XO-1 hardware Signed-off-by: Andres Salomon --- hook | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 hook diff --git a/hook b/hook new file mode 100644 index 0000000..63a1d14 --- /dev/null +++ b/hook @@ -0,0 +1,34 @@ +#!/bin/sh + +# +# List the soft prerequisites here. This is a space separated list of +# names, of scripts that are in the same directory as this one, that +# must be run before this one can be. +# +PREREQ="" + +prereqs() +{ + echo "$PREREQ" +} + +case $1 in +# get pre-requisites +prereqs) + prereqs + exit 0 + ;; +esac + +. /usr/share/initramfs-tools/hook-functions + +# Ensure the mtd (and related) modules are included +for x in cafe_nand redboot jffs2 ubifs ; do + manual_add_modules "${x}" +done + +# Video drivers are important, too, as we don't have VGA support +for x in lxfb gxfb fbcon ; do + manual_add_modules "${x}" +done + -- 2.39.5