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] . "<<") } } }
|