logo

widrop

[mirror] WiDrop distribution, now defunct git clone https://hacktivis.me/git/mirror/widrop.git

build.sh (612B)


  1. #!/bin/sh
  2. echo WIP
  3. echo use multistrap -f flavors/$name/multistrap.conf
  4. exit 0
  5. #fuser -k -n tcp 80
  6. #fuser -k -n tcp 22
  7. #fuser -k -n udp 53
  8. /usr/sbin/multistrap -f multistrap.conf dist
  9. cp config/interfaces dist/etc/network/interfaces
  10. cp config/hostname dist/etc/hostname
  11. cp config/fstab dist/etc/fstab
  12. # dropbear
  13. mknod -m 644 dist/dev/random c 1 8
  14. mknod -m 644 dist/dev/urandom c 1 9
  15. # linux
  16. cp config/fstab dist/etc/mtab
  17. cp /usr/bin/qemu-arm-static dist/usr/bin
  18. mkdir dist/proc
  19. mount -o bind /proc dist/proc
  20. chroot dist dpkg --configure -a
  21. umount dist/proc
  22. rm dist/usr/bin/qemu-arm-static
  23. du -sh dist