#!/mod/bin/jimsh

package require cgi
source /mod/webif/lib/setup
require system.class

set now [cgi_get now no]

httpheader

if {$now eq "yes"} {
	puts "Rebooting..."
	system reboot
} else {
	puts "Not rebooting..."
}

