In uci-defaults detect a SATA controller and install needed packages

This commit is contained in:
Lee Miller 2023-05-30 23:42:55 +03:00
parent a3ddbfac67
commit 92ab2ebe7a
Signed by: lee.miller
GPG Key ID: 4F97A5EA88F4AB63
1 changed files with 14 additions and 0 deletions

14
defaults/51-waveshare Normal file
View File

@ -0,0 +1,14 @@
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