network-manager: remove useless use of basename
parent
e318ba30fb
commit
5e0f8c8a4c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue