AFAIK Linksys did not intentionally make the WRT54G hackable; they were forced into releasing the OS source when it was found that it was based on GPLed linux components.
Specifically, "The Linux-based open source Wireless-N Broadband Router with Storage Link (WRT160NL) was created specially for hobbyists and wireless aficionados."