NAS
NAS How To
How To: Hacking the Linksys NSLU2 - Part 4- Customizing the Flash | How To: Hacking the Linksys NSLU2 - Part 4- Customizing the Flash |
|
|
| Jim Buzbee | |||
| September 09, 2004 | |||
IntroductionI hope you've been enjoying the extensions you've made to your NSLU2 based on my previous articles [Part 1] [Part 2] [Part 3 ]. What we've accomplished is powerful, but there's something missing. Any time your box reboots, all of our new processes such as telnet, NFS and If this were a normal computer we would just put our startup scripts into the boot sequence. On Linux this would mean tracing the startup sequence beginning with the first process, init, and moving through the rc script directory. We would position our script to be called somewhere after networking was initialized. But on this box it's not quite so easy. The entire startup sequence is stored on a RAM disk. Any changes we make on this disk are lost when the box reboots. I spent quite a bit of time looking for a "hook", a file on the disk where we could put a reference to a custom script. One example of this would be crontab, a file on The only possible file I found was the Samba configuration file. Samba had some capabilities to run external processes specified in the configuration file, but ultimately this led to a dead-end as well. My original goal was to add functionality without modifying the standard Linksys firmware, but it became apparent that there would be no easy way to do this. Luckily, while I was spinning my wheels looking for a boot up hook, other members of the NSLU2 development community were taking a different approach. They were exploring the possibility of modifying the Linksys firmware itself. If you can modify the code in the Flash, you can change the boot up sequence to do any number of things including starting up new processes. It may seem an extreme approach, but since this is a Linux system, the layout of the Flash image is fairly standardized and well understood.
Tags: BYOD, Hacking, How To, Linksys, NAS, NSLU2, Related Articles:How To: Hacking the Linksys NSLU2 - Part 5- Moving to UnslungHow To: Hacking the Linksys NSLU2 - Part 2 - Adding NFS How To:Hacking the Linksys NSLU2 - Part 3 - Adding an iTunes server Hacking the Linksys NSLU2 Part VI - Installing a Media Server How To: Hacking the Linksys NSLU2 - Part 1 |
|||
|
Are Cat6 and Cat5e not perfectly compatible?
Captive portal for security
D-Link DNS-323 Mysteries
Gigabit Network Help!
Synology DS-209+ review up!!
|
|
|
|
|
|
|
|
More |
|
You could win a Trendnet TEW-633GR Wireless N Gigabit Router and two TEW-621PC 300Mbps Wireless N-Draft PC Cards |
| Wireless Performance Charts: Belkin N+ Wireless Router |
| Router Performance Charts: Belkin N+ Wireless Router |
|
SearchWiki Search personalized by Google Analyst firm cuts 2009 PC growth expectations by 64% Graphene-based memory eyed by researchers to replace flash |
Cooper Wiring Devices intros Aspire RF Home Controller