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
|
|
|
|
|
2016-05-05 22:11:03 +00:00
|
|
|
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
|