15 lines
345 B
Plaintext
15 lines
345 B
Plaintext
|
VERSION=1
|
||
|
|
||
|
[ "$(uci -q get defaults.version.waveshare)" -ge "$VERSION" ] && exit
|
||
|
|
||
|
# save version
|
||
|
/sbin/uci set defaults.version.waveshare="$VERSION"
|
||
|
|
||
|
sata_device=$(lspci -d ::106)
|
||
|
|
||
|
[ -z "$device" ] && exit
|
||
|
|
||
|
opkg update
|
||
|
opkg install kmod-ata-ahci smartmontools hdparm fdisk parted \
|
||
|
kmod-hwmon-drivetemp btrfs-progs kmod-fs-btrfs cryptsetup
|