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