#!/bin/sh | |
systemctl stop serial-getty@ttyS0 | |
echo nct7904 0x2e > /sys/bus/i2c/devices/i2c-6/new_device | |
echo nct7904 0x2d > /sys/bus/i2c/devices/i2c-6/new_device | |
echo 0x2d > /sys/bus/i2c/devices/i2c-6/delete_device | |
echo 0x2e > /sys/bus/i2c/devices/i2c-6/delete_device | |
echo nct7904 0x2e > /sys/bus/i2c/devices/i2c-6/new_device | |
echo nct7904 0x2d > /sys/bus/i2c/devices/i2c-6/new_device | |