Add packaging for vagrant box and cleanup step
This commit is contained in:
19
debian-13/scripts/networkd.sh
Normal file
19
debian-13/scripts/networkd.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
install -d -m 755 -o root -g root /etc/systemd/network
|
||||
cat > /etc/systemd/network/lan0.network << 'EOF'
|
||||
[Match]
|
||||
Name=e*
|
||||
Type=ether
|
||||
|
||||
[Network]
|
||||
DHCP=ipv4
|
||||
EOF
|
||||
|
||||
chown root:root /etc/systemd/network/lan0.network
|
||||
chmod 644 /etc/systemd/network/lan0.network
|
||||
|
||||
mv /etc/network/interfaces /etc/network/interfaces.save
|
||||
mv /etc/network/interfaces.d /etc/network/interfaces.d.save
|
||||
systemctl enable systemd-networkd
|
||||
systemctl disable networking
|
||||
Reference in New Issue
Block a user