profiles 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. #!/usr/bin/env bash
  2. # shellcheck disable=SC2034
  3. # Device profiles for openwrtbuilder
  4. # Default packages
  5. default_packages="luci luci-ssl luci-proto-wireguard luci-app-statistics \
  6. collectd-mod-sensors collectd-mod-thermal collectd-mod-conntrack \
  7. collectd-mod-cpu nano htop diffutils tar iperf3 zsh rsync \
  8. openssh-sftp-server"
  9. # Current devices
  10. declare -Ag r4s=(
  11. [device]="friendlyarm_nanopi-r4s"
  12. [target]="rockchip/armv8"
  13. [filesystem]="ext4"
  14. [packages]="$default_packages luci-app-ddns luci-app-sqm irqbalance \
  15. collectd-mod-df usbutils kmod-usb-storage kmod-usb-storage-uas \
  16. kmod-fs-btrfs btrfs-progs block-mount smcroute avahi-daemon \
  17. curl ethtool ca-bundle"
  18. [config]="CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y CONFIG_BTRFS_PROGS_ZSTD=y \
  19. CONFIG_TARGET_ROOTFS_PARTSIZE=512 CONFIG_TARGET_KERNEL_PARTSIZE=32 \
  20. CONFIG_BUILDBOT=n"
  21. [files]="/mnt/backup"
  22. )
  23. declare -Ag ax6000=(
  24. [device]="xiaomi_redmi-router-ax6000-stock"
  25. [target]="mediatek/filogic"
  26. [release]="snapshot"
  27. [filesystem]="squashfs"
  28. [packages]="$default_packages -dnsmasq -odhcpd-ipv6only -nftables -firewall4"
  29. )
  30. declare -Ag ax6000_uboot=(
  31. [device]="xiaomi_redmi-router-ax6000-ubootmod"
  32. [target]="mediatek/filogic"
  33. [release]="snapshot"
  34. [filesystem]="squashfs"
  35. [packages]="$default_packages -dnsmasq -odhcpd-ipv6only -nftables -firewall4"
  36. )
  37. declare -Ag n5100=(
  38. [device]="generic"
  39. [target]="x86/64"
  40. [filesystem]="squashfs"
  41. [packages]="$default_packages luci-app-ddns irqbalance collectd-mod-df \
  42. usbutils kmod-usb-storage kmod-usb-storage-uas kmod-fs-btrfs \
  43. btrfs-progs block-mount cryptsetup kmod-crypto-xts smcroute \
  44. avahi-daemon curl ethtool ca-bundle smartmontools intel-microcode \
  45. lm-sensors samba4-server luci-app-samba4 tailscale shadow-useradd"
  46. [config]="CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y CONFIG_BTRFS_PROGS_ZSTD=y \
  47. CONFIG_TARGET_ROOTFS_PARTSIZE=512 CONFIG_TARGET_KERNEL_PARTSIZE=32"
  48. [files]="/mnt/backup"
  49. )
  50. declare -Ag rpi4=(
  51. [device]="rpi-4"
  52. [target]="bcm27xx/bcm2711"
  53. [filesystem]="ext4"
  54. [packages]="$default_packages kmod-usb-net-asix-ax88179 kmod-usb-net-rtl8152 \
  55. luci-app-upnp luci-app-pbr -dnsmasq dnsmasq-full luci-app-ddns luci-app-sqm"
  56. )
  57. declare -Ag r4s_stock=(
  58. [device]="friendlyarm_nanopi-r4s"
  59. [target]="rockchip/armv8"
  60. [filesystem]="ext4"
  61. [release]="snapshot"
  62. )
  63. declare -Ag totolink=(
  64. [device]="totolink_x5000r"
  65. [target]="ramips/mt7621"
  66. [filesystem]="squashfs"
  67. [packages]="$default_packages -dnsmasq -odhcpd-ipv6only -nftables -firewall4 \
  68. -kmod-nft-offload collectd-mod-iwinfo"
  69. )
  70. declare -Ag archer=(
  71. [device]="tplink_archer-c7-v2"
  72. [target]="ath79/generic"
  73. [filesystem]="squashfs"
  74. [packages]="$default_packages -dnsmasq -odhcpd -iptables \
  75. -ath10k-firmware-qca988x-ct ath10k-firmware-qca988x-ct-full-htt"
  76. )
  77. declare -Ag linksys=(
  78. [device]="linksys_ea8300"
  79. [target]="ipq40xx/generic"
  80. [filesystem]="squashfs"
  81. [packages]="$default_packages -dnsmasq -odhcpd -iptables"
  82. )
  83. declare -Ag r2s=(
  84. [device]="friendlyarm_nanopi-r2s"
  85. [target]="rockchip/armv8"
  86. [filesystem]="ext4"
  87. [packages]="$default_packages luci-app-upnp luci-app-pbr -dnsmasq dnsmasq-full \
  88. luci-app-ddns luci-app-sqm luci-app-statistics collectd-mod-sensors \
  89. collectd-mod-thermal collectd-mod-conntrack smcroute curl ethtool"
  90. )
  91. declare -Ag r2s_tr=(
  92. [device]="friendlyarm_nanopi-r2s"
  93. [target]="rockchip/armv8"
  94. [filesystem]="ext4"
  95. [packages]="$default_packages luci-app-upnp luci-app-pbr luci-app-ddns \
  96. luci-app-statistics collectd-mod-sensors collectd-mod-thermal \
  97. collectd-mod-conntrack curl ethtool travelmate"
  98. )