From 4c3352896edb398ab29ce583a270ef3a8f2b905e Mon Sep 17 00:00:00 2001 From: volth Date: Mon, 11 Jun 2018 10:35:02 +0000 Subject: nixos/initrd-network: support hetzner --- nixos/modules/system/boot/initrd-network.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'nixos/modules') diff --git a/nixos/modules/system/boot/initrd-network.nix b/nixos/modules/system/boot/initrd-network.nix index 33862b0965cc..384ae909b701 100644 --- a/nixos/modules/system/boot/initrd-network.nix +++ b/nixos/modules/system/boot/initrd-network.nix @@ -12,6 +12,7 @@ let if [ "$1" = bound ]; then ip address add "$ip/$mask" dev "$interface" if [ -n "$router" ]; then + ip route add "$router" dev "$interface" # just in case if "$router" is not within "$ip/$mask" (e.g. Hetzner Cloud) ip route add default via "$router" dev "$interface" fi if [ -n "$dns" ]; then -- cgit 1.4.1