From: Andres Salomon Date: Sun, 15 Feb 2009 21:36:55 +0000 (-0500) Subject: add initramfs-tools hooks for XO-1 hardware X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=775e570cd8b8226a7096c9bbf874775a7157ce91;p=olpc-xo1 add initramfs-tools hooks for XO-1 hardware Signed-off-by: Andres Salomon --- 775e570cd8b8226a7096c9bbf874775a7157ce91 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 +