[aadk-commits] dbailey: uClinux/trunk r198 -
/uClinux/trunk/uClinux-dist/vendors/Digium/S800I/
aadk-commits at lists.digium.com
aadk-commits at lists.digium.com
Fri Mar 2 14:38:23 MST 2007
Author: dbailey
Date: Fri Mar 2 15:38:22 2007
New Revision: 198
URL: http://svn.digium.com/view/aadk?view=rev&rev=198
Log:
Add in checks so if I2CC devices are not present, time won't be wasted trying to load all the drivers
Moved the loading of I2C devices to after start of asterisk so that loading does not delay asterisk operation.
Modified:
uClinux/trunk/uClinux-dist/vendors/Digium/S800I/rc
Modified: uClinux/trunk/uClinux-dist/vendors/Digium/S800I/rc
URL: http://svn.digium.com/view/aadk/uClinux/trunk/uClinux-dist/vendors/Digium/S800I/rc?view=diff&rev=198&r1=197&r2=198
==============================================================================
--- uClinux/trunk/uClinux-dist/vendors/Digium/S800I/rc (original)
+++ uClinux/trunk/uClinux-dist/vendors/Digium/S800I/rc Fri Mar 2 15:38:22 2007
@@ -20,10 +20,6 @@
modprobe orinoco_cs
modprobe ide-cs
modprobe blackfin_wd
-modprobe i2c-bfin-twi
-modprobe i2c-dev
-modprobe hwmon
-modprobe lm75
modprobe sx00i_cfgswx
# mount sysfs to get access to i2c devices
@@ -131,4 +127,16 @@
echo "Running local stuff..."
. /etc/config/rc.local
fi
+
+modprobe i2c-bfin-twi
+modprobe i2c-dev
+modprobe eeprom
+
+I2CEEPROMADDR=`ls /sys/bus/i2c/devices/ | grep "0-0050" `
+if [ "$I2CEEPROMADDR" = "0-0050" ]; then
+ echo "I2C Devices detected"
+ modprobe hwmon
+ modprobe lm75
+fi
+
cat /etc/motd
More information about the aadk-commits
mailing list