Add interface eth0
This commit is contained in:
parent
191686d6c5
commit
e66486fdbd
2 changed files with 4 additions and 0 deletions
1
build.sh
1
build.sh
|
@ -268,6 +268,7 @@ chmod 644 "$ROOTFS_DIR/etc/hostname"
|
||||||
echo "127.0.1.1 $HOSTNAME" >>"$ROOTFS_DIR/etc/hosts"
|
echo "127.0.1.1 $HOSTNAME" >>"$ROOTFS_DIR/etc/hosts"
|
||||||
|
|
||||||
apply_file 644 '/etc/network/interfaces'
|
apply_file 644 '/etc/network/interfaces'
|
||||||
|
apply_file 644 '/etc/network/interfaces.d/eth0'
|
||||||
apply_file 644 '/etc/network/interfaces.d/eth1'
|
apply_file 644 '/etc/network/interfaces.d/eth1'
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
3
files/etc/network/interfaces.d/eth0
Normal file
3
files/etc/network/interfaces.d/eth0
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
auto eth0
|
||||||
|
allow-hotplug eth0
|
||||||
|
iface eth0 inet dhcp
|
Reference in a new issue