autoload modules from extensions

Here is information about customize your C series firmware..:!:This forum is NOT FOR DUMMY USERS questions or problems but DEVELOPER.

autoload modules from extensions

Postby luk70 » Thu Jun 16, 2011 1:23 am

hello,

this is not really a problem, but I would like to get your opinion on the following:

which is the best method (and also safe :) ) to automatically load the 3rd party usb wifi modules?

I've just been able to autoload the module (and also avoid the pop-up asking to configure the net 8-) )by means of a script named
/mtd_rwarea/network_opt/etc/init.d/usb_usbmount_before/0_20_network_module_reload.init

whose content is:
Code: Select all
#!/bin/sh
NET_MODULE_PATH="/mtd_rwarea/network_opt/lib/modules"
/sbin/rmmod rt3572sta
if [ -f $NET_MODULE_PATH/rt3370sta.ko ] ; then
    /sbin/insmod $NET_MODULE_PATH/rt3370sta.ko >> $OPT/network_module_reload_ok
    echo "network_module_rt3370sta.ko_ok" >> $OPT/network_module_reload_ok
      else
echo "network_module_rt3370sta.ko_NOT_FOUND!!!!!!!!" >> $OPT/network_module_reload_ok
fi


Do you have any comment/suggestion to increase the robustness of this method?
thaks
Luk
luk70
 
Posts: 3
Joined: Thu Jun 09, 2011 8:08 pm

Return to [C] Firmware

Who is online

Users browsing this forum: No registered users and 1 guest