Merge pull request #41829 from volth/patch-151

nixos/initrd-network: support hetzner
This commit is contained in:
Jörg Thalheim 2018-06-11 15:58:02 +01:00 committed by GitHub
commit a1f226b78b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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