summaryrefslogtreecommitdiff
path: root/initrd-tools/usbstick
diff options
context:
space:
mode:
authorjonas <jonas@8f53b18a-e215-0410-8885-9f593d34873e>2006-06-10 18:18:37 +0000
committerjonas <jonas@8f53b18a-e215-0410-8885-9f593d34873e>2006-06-10 18:18:37 +0000
commitb6d85b04286d30498a11aaac36e75032b1e72801 (patch)
tree2fc597a2ae2cf69a5cc6b3e7162f02f89613b08d /initrd-tools/usbstick
parent369cb1e5a343ec9e7c6f05de64f0eb102488d77f (diff)
Added all work so far...
git-svn-id: svn+ssh://xayide/home/jonas/private_svn/fleshybrid/trunk@2 8f53b18a-e215-0410-8885-9f593d34873e
Diffstat (limited to 'initrd-tools/usbstick')
-rwxr-xr-xinitrd-tools/usbstick23
1 files changed, 23 insertions, 0 deletions
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