piface / PiFace-Real-Time-Clock

Installation script for PiFace Real Time Clock.
MIT License
13 stars 13 forks source link

Init script contains errant backslash #3

Closed nemequ closed 9 years ago

nemequ commented 9 years ago

You shouldn't be escaping the # when writing the init script. The backslash gets written to the script, so you end up with

modprobe i2c-dev
\# Calibrate the clock (default: 0x47). See datasheet for MCP7940N
i2cset -y $i 0x6f 0x08 0x47
modprobe i2c:mcp7941x
echo mcp7941x 0x6f > /sys/class/i2c-dev/i2c-$i/device/new_device
hwclock -s
SotonTRG commented 9 years ago

+1just came on here to report this same bug.....

tompreston commented 9 years ago

Just fixed this, thanks.