logo

widrop

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

setup.sh (493B)


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