build.sh (612B)
- #!/bin/sh
- echo WIP
- echo use multistrap -f flavors/$name/multistrap.conf
- exit 0
- #fuser -k -n tcp 80
- #fuser -k -n tcp 22
- #fuser -k -n udp 53
- /usr/sbin/multistrap -f multistrap.conf dist
- 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