When router boots, it initiates network, in order users to connect to Wi-Fi.
I have a Wi-Fi ON/OFF option at my router.
If i set my Wi-Fi to OFF, it restarts the Wi-Fi(/etc/init.d/network restart
), and turns off it.
These settings are saved, and when i reboot the router, it turns off the Wi-Fi signal like following.
- start up the router, initiates
network
- re-initiates
network
after reading the config file(ifchk
), which leads shuting down the Wi-Fi signal
This makes my booting time slight longer. i've erased /usr/bin/ifchk
code at the cron
, which has the etc/init.d/network restart
code, and obviously it can't turns off the Wi-Fi, but i can reduce my booting time around 10 seconds.
ifchk
is a file that i made with C
, which checks Wi-Fi interfaces are On or Off.
Before the crontab
initiates while boots, network
is initiated.
So what i'm gonna do is, before first network
initiate, i'm gonna initiate /usr/bin/ifchkBoot
, which is the exact same with ifchk
, but doesn't have a network restart
command, and erase /usr/bin/ifchk
at the cron
However, i have no idea where i can find the first network
initiate code at my SDK.
any tips for this?