fab351
From 34011ee53e745f74d70bc5b52dade6d4ef349e90 Mon Sep 17 00:00:00 2001
fab351
From: Lubomir Rintel <lkundrak@v3.sk>
fab351
Date: Mon, 17 Jun 2019 10:07:38 +0200
fab351
Subject: [PATCH] network-manager: remove useless use of basename
fab351
fab351
(cherry picked from commit 5e0f8c8a4ced36268d0077acafa1db2402776fa6)
fab351
---
fab351
 modules.d/35network-manager/nm-run.sh | 2 +-
fab351
 1 file changed, 1 insertion(+), 1 deletion(-)
fab351
fab351
diff --git a/modules.d/35network-manager/nm-run.sh b/modules.d/35network-manager/nm-run.sh
fab351
index 0f943631..5f4b38ca 100755
fab351
--- a/modules.d/35network-manager/nm-run.sh
fab351
+++ b/modules.d/35network-manager/nm-run.sh
fab351
@@ -10,7 +10,7 @@ for _i in /sys/class/net/*/
fab351
 do
fab351
     state=/run/NetworkManager/devices/$(cat $_i/ifindex)
fab351
     grep -q connection-uuid= $state 2>/dev/null || continue
fab351
-    ifname=$(basename $_i)
fab351
+    ifname=${_i##*/}
fab351
     sed -n 's/root-path/new_root_path/p' <$state >/tmp/dhclient.$ifname.dhcpopts
fab351
     source_hook initqueue/online $ifname
fab351
     /sbin/netroot $ifname
fab351