diff options
Diffstat (limited to 'initrd-tools/usbstick')
-rwxr-xr-x | initrd-tools/usbstick | 23 |
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 |