There are a couple ways to reboot DD-WRT devices from the command line. The following is the more well-known method.
ssh -l root 192.168.1.1 reboot
It turns out there is a user called reboot which runs reboot as its shell. The following command also reboots the device.
ssh -l reboot 192.168.1.1