summaryrefslogtreecommitdiff
path: root/initrd-tools/usbstick
blob: c342f6aac6937978ae66545ff823a99e8e053053 (plain)
  1. #!/bin/sh
  2. #
  3. # /usr/share/initrd-tools/scripts/usbstick
  4. #
  5. cp /usr/local/share/initrd.usbinit \
  6. $INITRDDIR/scripts/usbinit.sh
  7. cp /sbin/sfdisk $INITRDDIR/sbin
  8. cp /bin/sleep $INITRDDIR/bin/sleep
  9. case "$VERSION" in
  10. 2.4.*)
  11. LD_ASSUME_KERNEL=2.4
  12. export LD_ASSUME_KERNEL
  13. ;;
  14. esac
  15. PROGS="/sbin/sfdisk /bin/sleep"
  16. LIBS=`ldd $PROGS | awk '{print $3}' | sort -u`
  17. for i in $LIBS
  18. do
  19. mkdir -p `dirname $INITRDDIR/$i`
  20. cp $i $INITRDDIR/$i
  21. done