# HG changeset patch # User Christophe Lincoln # Date 1398636729 -7200 # Node ID c03f2c599ef452e36d8a4193d73ff039a0c0af26 # Parent 22d84280392c95f865c45324c22308241d472304 pyglow: only root can use it diff -r 22d84280392c -r c03f2c599ef4 python-rpi-pyglow/stuff/pyglow --- a/python-rpi-pyglow/stuff/pyglow Sun Apr 27 23:20:13 2014 +0200 +++ b/python-rpi-pyglow/stuff/pyglow Mon Apr 28 00:12:09 2014 +0200 @@ -5,8 +5,9 @@ ex="/usr/share/pyglow" -# Make sure we have i2c-dev module loaded -if ! lsmod | fgrep -q 'i2c_dev'; then +# Make sure we have i2c-* module loaded +if ! lsmod | grep -q 'i2c_dev'; then + modprobe i2c-bcm2708 modprobe i2c-dev fi