Merge pull request #41829 from volth/patch-151
nixos/initrd-network: support hetzner
This commit is contained in:
commit
a1f226b78b
@ -12,6 +12,7 @@ let
|
|||||||
if [ "$1" = bound ]; then
|
if [ "$1" = bound ]; then
|
||||||
ip address add "$ip/$mask" dev "$interface"
|
ip address add "$ip/$mask" dev "$interface"
|
||||||
if [ -n "$router" ]; then
|
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"
|
ip route add default via "$router" dev "$interface"
|
||||||
fi
|
fi
|
||||||
if [ -n "$dns" ]; then
|
if [ -n "$dns" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user