From 17a9b50be3db7980c20dde872eee180876ed3094 Mon Sep 17 00:00:00 2001 From: Christian Hewitt Date: Sun, 5 Sep 2021 03:34:52 +0000 Subject: [PATCH] ethmactool: dependency changes for devices with no eth0 --- packages/sysutils/ethmactool/scripts/ethmactool-config | 7 +++++++ .../sysutils/ethmactool/system.d/ethmactool-config.service | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/sysutils/ethmactool/scripts/ethmactool-config b/packages/sysutils/ethmactool/scripts/ethmactool-config index 18ce061ea0..874c69a32e 100755 --- a/packages/sysutils/ethmactool/scripts/ethmactool-config +++ b/packages/sysutils/ethmactool/scripts/ethmactool-config @@ -3,6 +3,13 @@ # SPDX-License-Identifier: GPL-2.0 # Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv) +case $DTNAME in + radxa,zero) + echo "Skipping configuration, eth0 not detected" + exit 0 + ;; +esac + COMPATIBLE=$(/usr/bin/dtsoc) MAC_STEP="" diff --git a/packages/sysutils/ethmactool/system.d/ethmactool-config.service b/packages/sysutils/ethmactool/system.d/ethmactool-config.service index e11180b467..9bf83f99c4 100644 --- a/packages/sysutils/ethmactool/system.d/ethmactool-config.service +++ b/packages/sysutils/ethmactool/system.d/ethmactool-config.service @@ -1,7 +1,6 @@ [Unit] Description=Configure eth0 MAC address -BindsTo=sys-subsystem-net-devices-eth0.device -After=sys-subsystem-net-devices-eth0.device +Requisite=sys-subsystem-net-devices-eth0.device Before=connman.service [Service]