Navigation

Project: wok

Clone project: hg clone http://hg.slitaz.org/wok

  • Download tarball:
  • bz2
  • gz

Search

wok changeset 16534:c03f2c599ef4

pyglow: only root can use it
author Christophe Lincoln <pankso@slitaz.org>
date Mon Apr 28 00:12:09 2014 +0200 (6 months ago ago)
parents 22d84280392c
children 414cf43a9454
files python-rpi-pyglow/stuff/pyglow
line diff
     1.1 --- a/python-rpi-pyglow/stuff/pyglow	Sun Apr 27 23:20:13 2014 +0200
     1.2 +++ b/python-rpi-pyglow/stuff/pyglow	Mon Apr 28 00:12:09 2014 +0200
     1.3 @@ -5,8 +5,9 @@
     1.4  
     1.5  ex="/usr/share/pyglow"
     1.6  
     1.7 -# Make sure we have i2c-dev module loaded
     1.8 -if ! lsmod | fgrep -q 'i2c_dev'; then
     1.9 +# Make sure we have i2c-* module loaded
    1.10 +if ! lsmod | grep -q 'i2c_dev'; then
    1.11 +	modprobe i2c-bcm2708
    1.12  	modprobe i2c-dev
    1.13  fi
    1.14