From 99135f792574a085fb6c2f00dbb535be9d7d9f31 Mon Sep 17 00:00:00 2001 From: lub Date: Fri, 31 Jan 2020 11:34:31 +0100 Subject: [PATCH] remove trailing space from ax51 network.sh --- hardware/hetzner_ax51-nvme/network.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/hetzner_ax51-nvme/network.sh b/hardware/hetzner_ax51-nvme/network.sh index 350fc83..a88ad5e 100755 --- a/hardware/hetzner_ax51-nvme/network.sh +++ b/hardware/hetzner_ax51-nvme/network.sh @@ -1,7 +1,7 @@ #!/bin/bash -e address=$(ip address show dev eth0 scope global | grep -F 'inet ' | perl -pe 's#.*inet (.*?)/.*#$1#') -gateway=$(ip route list dev eth0 default | perl -pe 's#.*via ##') +gateway=$(ip route list dev eth0 default | perl -pe 's#.*via (.*) #$1#') # $interface differs from the live system because of different naming schemes # see https://wiki.debian.org/NetworkInterfaceNames for more details