burrow-pi-img/stage1/02-net-tweaks/00-run.sh

19 lines
403 B
Bash
Raw Normal View History

2016-04-11 06:29:41 +00:00
#!/bin/bash -e
install -m 644 files/ipv6.conf ${ROOTFS_DIR}/etc/modprobe.d/ipv6.conf
install -m 644 files/interfaces ${ROOTFS_DIR}/etc/network/interfaces
cat <<EOF > ${ROOTFS_DIR}/etc/hostname
${HOST_NAME}
EOF
# Append hostname
cat <<EOF >> ${ROOTFS_DIR}/etc/hosts
127.0.1.1 ${HOST_NAME}
EOF
on_chroot sh -e - <<EOF
2016-04-11 06:29:41 +00:00
dpkg-divert --add --local /lib/udev/rules.d/75-persistent-net-generator.rules
EOF