Joined: 18 Mar 2014 Posts: 12837 Location: Netherlands
Posted: Wed Mar 30, 2022 11:20 Post subject:
No sweat there are more important things than DDWRT
The problem with startup are the dependencies.
To avoid catch 22 situations services are started without taking dependent services into account and therefore have to start again.
It is very difficult to take all possible setups into account and when trying to untangle things the chances are real that you break things.
I tried to look at it but it takes bigger brains than me to solve this.
egc's inverse relationship:
Quote:
There is an inverse relation between coding skills and communication skills
Joined: 26 Mar 2013 Posts: 1855 Location: Hung Hom, Hong Kong
Posted: Wed Mar 30, 2022 14:43 Post subject:
egc wrote:
No sweat there are more important things than DDWRT
The problem with startup are the dependencies.
To avoid catch 22 situations services are started without taking dependent services into account and therefore have to start again.
It is very difficult to take all possible setups into account and when trying to untangle things the chances are real that you break things.
Well, OS textbook answers: semaphores & critical section? file (e.g. pid) locking? There had to be something that made everyone just hands-up.
Maybe this critical section was just started too early.... just delay it?
_________________ Router: Asus RT-N18U (rev. A1)
Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!
Joined: 26 Mar 2013 Posts: 1855 Location: Hung Hom, Hong Kong
Posted: Sun May 01, 2022 10:49 Post subject:
jwh7 wrote:
emm wrote:
This script file is more or less I am looking for, but for broadcom ddwrt. So source code is only direction? Are there any development documentation regarding boot phase?
Lately I was playing with USB Startup Script (/tmp/.rc_usb), I came across this portion of DD-WRT source codes(line numbers: 2962 - 2980). I think it might help me understand sysinit.