nixos/initrd-network: support hetzner
This commit is contained in:
parent
ed657a98c7
commit
4c3352896e
@ -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