Be sure to download the firmware for the WRT54GL frmo this link: http://www.hotspotsystem.com/firmware/openwrt/LINKSYS/openwrt-wrt54g-squashfs.bin

After that you just need to run the command, see step 5 and 6 of this guide: http://www.hotspotsystem.com/installation-guide-ubiquiti-airmax