opkg install kmod-md-linear mdadm block-mount luci-app-hd-idle
mdadm --assemble /dev/md1 /dev/sda2 --run
# if you experience periodic disk access and disk won't sleep
# this runs ext4lazyinit
mount -o init_itable=0 /dev/sdb0 /mnt/sdb0
Tethering
opkg install kmod-usb-net-rndis
sensors.sh
opkg install i2c-tools smartmontools
echo "CPU Temperature:" $(($(/usr/sbin/i2cget -y 0x0 0x0a 0x07)))"°C"
echo "HDD Temperature:" $(smartctl -A /dev/sda | grep Temperature | awk '{ print $10 }')"°C"
echo "HDD State:" $(smartctl -x /dev/sda | grep State | awk '{ print $3 }')
echo -n "Fanspeed: "
tacho=$(($(/usr/sbin/i2cget -y 0x0 0x0a 0x08)))
if [ $tacho -gt 0 ]; then
echo $((60000/tacho))
else
echo 0
fi
Turn on after power failure
# Read value 0 = stay off, 1 = turn on
i2cget -y 0x0 0x50 0x7 b
# Set value
i2cset -y 0x0 0x50 0x7 0x01 b