Sunday, July 31, 2016

prevent hard disk from going to sleep in windows

powercfg -x disk-timeout-ac 0
powercfg -x disk-timeout-dc 0

Wednesday, July 20, 2016

openwrt set wan with random mac

uci set network.wan.macaddr=$(hexdump -n6 -e '6/1 ":%02X"' /dev/urandom | cut -f2- -d ":")
uci commit