From 16edfb22b814bf689a112de978bae97c334dd5e0 Mon Sep 17 00:00:00 2001 From: volth Date: Mon, 10 Sep 2018 02:39:15 +0000 Subject: oops --- nixos/modules/system/boot/initrd-network.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'nixos/modules/system/boot/initrd-network.nix') diff --git a/nixos/modules/system/boot/initrd-network.nix b/nixos/modules/system/boot/initrd-network.nix index 1019b8db6daba..720a9ffd53d6c 100644 --- a/nixos/modules/system/boot/initrd-network.nix +++ b/nixos/modules/system/boot/initrd-network.nix @@ -12,10 +12,9 @@ let '' #! /bin/sh if [ "$1" = bound ]; then + ip address add "$ip/$mask" dev "$interface" if [ -n "$mtu" ]; then - ip address add "$ip/$mask" dev "$interface" mtu "$mtu" - else - ip address add "$ip/$mask" dev "$interface" + ip link set mtu "$mtu" dev "$interface" fi if [ -n "$staticroutes" ]; then echo "$staticroutes" \ -- cgit 1.4.1