init: optimized wake-on-lan script