From b6d85b04286d30498a11aaac36e75032b1e72801 Mon Sep 17 00:00:00 2001 From: jonas Date: Sat, 10 Jun 2006 18:18:37 +0000 Subject: Added all work so far... git-svn-id: svn+ssh://xayide/home/jonas/private_svn/fleshybrid/trunk@2 8f53b18a-e215-0410-8885-9f593d34873e --- initrd-tools/initrd.usbinit | 6 ++++++ initrd-tools/usbstick | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 initrd-tools/initrd.usbinit create mode 100755 initrd-tools/usbstick (limited to 'initrd-tools') diff --git a/initrd-tools/initrd.usbinit b/initrd-tools/initrd.usbinit new file mode 100644 index 0000000..9d7199d --- /dev/null +++ b/initrd-tools/initrd.usbinit @@ -0,0 +1,6 @@ +#!/bin/sh +# +# /usr/local/share/initrd.usbinit +# +/bin/sleep 5 +/sbin/sfdisk -R /dev/sda || true diff --git a/initrd-tools/usbstick b/initrd-tools/usbstick new file mode 100755 index 0000000..c342f6a --- /dev/null +++ b/initrd-tools/usbstick @@ -0,0 +1,23 @@ +#!/bin/sh +# +# /usr/share/initrd-tools/scripts/usbstick +# +cp /usr/local/share/initrd.usbinit \ + $INITRDDIR/scripts/usbinit.sh +cp /sbin/sfdisk $INITRDDIR/sbin +cp /bin/sleep $INITRDDIR/bin/sleep + +case "$VERSION" in + 2.4.*) + LD_ASSUME_KERNEL=2.4 + export LD_ASSUME_KERNEL + ;; +esac + +PROGS="/sbin/sfdisk /bin/sleep" +LIBS=`ldd $PROGS | awk '{print $3}' | sort -u` +for i in $LIBS +do + mkdir -p `dirname $INITRDDIR/$i` + cp $i $INITRDDIR/$i +done -- cgit v1.2.3