network-manager: remove useless use of basename

master
Lubomir Rintel 2019-06-17 10:07:38 +02:00 committed by Harald Hoyer
parent e318ba30fb
commit 5e0f8c8a4c
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ for _i in /sys/class/net/*/
do
state=/run/NetworkManager/devices/$(cat $_i/ifindex)
grep -q connection-uuid= $state 2>/dev/null || continue
ifname=$(basename $_i)
ifname=${_i##*/}
sed -n 's/root-path/new_root_path/p' <$state >/tmp/dhclient.$ifname.dhcpopts
source_hook initqueue/online $ifname
/sbin/netroot $ifname