ungleich-tools/devuan-netboot.sh
2019-12-09 19:43:41 +01:00

19 lines
291 B
Bash

#!/bin/sh
# Nico Schottelius, 2019-12-09
date=$(date +%F)
suite=ascii
dir=${suit}-${date}
debootstrap "${suite}" "${dir}"
chroot ${dir} apt install -y openssh-server rdnssd
cat > ${dir}/etc/network/interfaces << EOF
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet6 auto
EOF