Cut power feed to front usb-port on a specific time?

Hi!
Is it possible to cut down the power feed to front usb port when NAS enters in WOL-sleepmode? I have an external USB-powered fan mounted on the casing to cool the HDD. The problem is that the fan stays on when NAS enters in WOL-state during nights (noisy, consumes power, collects dust etc.). Is there a special cronjob command or is it possible to make a patch that cuts the power feed to USB-port on a specific time? Also when the NAS recovers back to online-state from WOL, the fan should also start spinning automaticly.
Is it possible to cut down the power feed to front usb port when NAS enters in WOL-sleepmode? I have an external USB-powered fan mounted on the casing to cool the HDD. The problem is that the fan stays on when NAS enters in WOL-state during nights (noisy, consumes power, collects dust etc.). Is there a special cronjob command or is it possible to make a patch that cuts the power feed to USB-port on a specific time? Also when the NAS recovers back to online-state from WOL, the fan should also start spinning automaticly.