Hello! I have gps device on ttyS1, but to use I must enable it by i2c-tools: $ i2cset -y 0 0x20 2 0x80 b 0x80 and disable: $ i2cset -y 0 0x20 2 0x0 b 0x80I want add some wrapper code to start gps device when ttyS1 is open and shutdown device on close.
How is is easy to do? -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html