Исправление TODD, 22.09.13 19:29 (текущая версия) :
перед return
if args[2] < 10 then os.execute("/sbin/poweroff") end
Исходная версия TODD, 22.09.13 19:26:
if args[2] < 10 then /sbin/poweroff end