http://downloads.netgear.com/files/GPL/GPL_Source_V361j_DM111PSP_series_consumer_rele...
[bcm963xx.git] / targets / fs.src / etc / profile
index c4fa7f2..ca37243 100755 (executable)
@@ -1,6 +1,6 @@
 # /etc/profile: system-wide .profile file for the Bourne shells
 
-PATH=/bin:/sbin:/usr/bin
+PATH=/mnt/bin:/bin:/sbin:/usr/bin
 KERNELVER=2.6.8.1
 export PATH
 echo
@@ -14,12 +14,13 @@ if [ "$firsttime" = "/var/udhcpd/udhcpd.lease*" ]; then
  echo > /var/udhcpd/udhcpd.leases
  ifconfig lo 127.0.0.1 netmask 255.0.0.0 broadcast 127.255.255.255 up
 # /etc/modules_install /lib/modules/$KERNELVER/extra
- insmod /lib/modules/$KERNELVER/extra/atmapi.ko
- insmod /lib/modules/$KERNELVER/extra/blaadd.ko
- insmod /lib/modules/$KERNELVER/extra/adsldd.ko
- insmod /lib/modules/$KERNELVER/extra/bcmprocfs.ko
- insmod /lib/modules/$KERNELVER/extra/bcm_enet.ko
- insmod /lib/modules/$KERNELVER/extra/bcm_usb.ko
+ test -e /lib/modules/$KERNELVER/extra/profdrvdd.ko && insmod /lib/modules/$KERNELVER/extra/profdrvdd.ko
+ test -e /lib/modules/$KERNELVER/extra/atmapi.ko && insmod /lib/modules/$KERNELVER/extra/atmapi.ko
+ test -e /lib/modules/$KERNELVER/extra/blaa_dd.ko && insmod /lib/modules/$KERNELVER/extra/blaa_dd.ko
+ test -e /lib/modules/$KERNELVER/extra/adsldd.ko && insmod /lib/modules/$KERNELVER/extra/adsldd.ko
+ test -e /lib/modules/$KERNELVER/extra/bcmprocfs.ko && insmod /lib/modules/$KERNELVER/extra/bcmprocfs.ko
+ test -e /lib/modules/$KERNELVER/extra/bcm_enet.ko && insmod /lib/modules/$KERNELVER/extra/bcm_enet.ko
+ test -e /lib/modules/$KERNELVER/extra/bcm_usb.ko && insmod /lib/modules/$KERNELVER/extra/bcm_usb.ko
  test -e /lib/modules/$KERNELVER/extra/wl.ko && insmod /lib/modules/$KERNELVER/extra/wl.ko
  test -e /lib/modules/$KERNELVER/extra/endpointdd.ko && insmod /lib/modules/$KERNELVER/extra/endpointdd.ko
  cfm