diff --git a/install b/install index f80148a..83ce9c8 100755 --- a/install +++ b/install @@ -15,7 +15,7 @@ # logfile="omv_install.log" -scriptversion="2.3.5" +scriptversion="2.3.6" _log() @@ -645,10 +645,10 @@ if [ ${skipNet} -ne 1 ]; then defLink="/etc/systemd/network/99-default.link" if [ -e "${defLink}" ]; then if [ ${rpi} -eq 1 ] && [ ${version} -eq 7 ]; then - mac="$(ip -j a show dev eth0 | jq -r .[].address)" + mac="$(ip -j a show dev eth0 | jq -r .[].address | head -n1)" _log "mac address - ${mac}" if [ -n "${mac}" ]; then - echo -e "[Match]\nMACAddress=${mac}\n[Link]\nName=eth0" > /etc/systemd/network/10-persistent-net.link + echo -e "[Match]\nMACAddress=${mac}\n[Link]\nName=eth0" > /etc/systemd/network/10-persistent-eth0.link fi else rm -fv "${defLink}"