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