setup.sh (493B)
- #!/bin/sh
- #fuser -k -n tcp 80
- #fuser -k -n tcp 22
- #fuser -k -n udp 53
- cp config/interfaces dist/etc/network/interfaces
- cp config/hostname dist/etc/hostname
- cp config/fstab dist/etc/fstab
- # dropbear
- mknod -m 644 dist/dev/random c 1 8
- mknod -m 644 dist/dev/urandom c 1 9
- # linux
- cp config/fstab dist/etc/mtab
- cp /usr/bin/qemu-arm-static dist/usr/bin
- mkdir dist/proc
- mount -o bind /proc dist/proc
- chroot dist dpkg --configure -a
- umount dist/proc
- rm dist/usr/bin/qemu-arm-static
- du -sh dist