blob: c342f6aac6937978ae66545ff823a99e8e053053 (
plain)
- #!/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
|