ros usb fix

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
:delay delay-time=8s

:local targetUUID "c4c87d99-1f0e-4078-a04b-d0d30a98184f"
:local targetSlot "usb1"

:foreach i in=[/disk/find] do={
:local currentSlot [/disk/get $i slot]
:local currentUUID [/disk/get $i fs-uuid]
:log info (">> $i $currentSlot $currentUUID<<")
:if ($currentUUID = $targetUUID) do={
:log info (">> Find $currentUUID<<")
:if ($currentSlot != $targetSlot) do={
/disk/remove $targetSlot
:delay delay-time=10s
/disk/set $i slot=$targetSlot
:log info (">>" . [/disk/get $i model] ."------". [/disk/get $i slot] . "<<")
}
}
}

ros usb fix
https://2333.world/ros-usb-fix/
作者
Yuban10703
发布于
2025年1月17日
许可协议