profiles 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. #!/usr/bin/env bash
  2. # shellcheck disable=SC2034
  3. # This file contains a set of device profiles for openwrtbuilder
  4. # bash doesn't like nested arrays so we use strings instead
  5. # Packages to install for all profiles
  6. default_packages="\
  7. luci \
  8. luci-ssl \
  9. nano \
  10. htop \
  11. diffutils \
  12. tar \
  13. iperf \
  14. bash \
  15. rsync \
  16. openssh-sftp-server \
  17. luci-app-wireguard \
  18. luci-proto-wireguard \
  19. luci-app-statistics \
  20. collectd-mod-sensors \
  21. collectd-mod-thermal \
  22. collectd-mod-conntrack \
  23. collectd-mod-cpu " # Leave trailing whitespace
  24. declare -Ag archer
  25. archer['profile']="tplink_archer-c7-v2"
  26. archer['target']="ath79/generic"
  27. archer['filesystem']="squashfs"
  28. archer['packages']="\
  29. $default_packages \
  30. -dnsmasq \
  31. -odhcpd \
  32. -iptables \
  33. -ath10k-firmware-qca988x-ct \
  34. ath10k-firmware-qca988x-ct-full-htt"
  35. declare -Ag linksys
  36. linksys['profile']="linksys_ea8300"
  37. linksys['target']="ipq40xx/generic"
  38. linksys['filesystem']="squashfs"
  39. linksys['packages']="\
  40. $default_packages \
  41. -dnsmasq \
  42. -odhcpd \
  43. -iptables"
  44. declare -Ag rpi4
  45. rpi4['profile']="rpi-4"
  46. rpi4['target']="bcm27xx/bcm2711"
  47. rpi4['filesystem']="ext4"
  48. rpi4['packages']="\
  49. $default_packages \
  50. kmod-usb-net-asix-ax88179 \
  51. kmod-usb-net-rtl8152 \
  52. luci-app-upnp \
  53. luci-app-wireguard \
  54. luci-app-vpn-policy-routing \
  55. -dnsmasq \
  56. dnsmasq-full \
  57. luci-app-ddns \
  58. luci-app-sqm"
  59. declare -Ag r2s
  60. r2s['profile']="friendlyarm_nanopi-r2s"
  61. r2s['target']="rockchip/armv8"
  62. r2s['filesystem']="ext4"
  63. r2s['packages']="\
  64. $default_packages \
  65. luci-app-upnp \
  66. luci-app-wireguard \
  67. luci-app-vpn-policy-routing \
  68. -dnsmasq \
  69. dnsmasq-full \
  70. luci-app-ddns \
  71. luci-app-sqm \
  72. luci-app-statistics \
  73. collectd-mod-sensors \
  74. collectd-mod-thermal \
  75. collectd-mod-conntrack \
  76. smcroute \
  77. curl \
  78. ethtool"
  79. declare -Ag r4s
  80. r4s['profile']="friendlyarm_nanopi-r4s"
  81. r4s['target']="rockchip/armv8"
  82. r4s['filesystem']="ext4"
  83. r4s['packages']="\
  84. $default_packages \
  85. luci-app-upnp \
  86. luci-app-wireguard \
  87. luci-proto-wireguard \
  88. luci-app-ddns \
  89. luci-app-sqm \
  90. irqbalance \
  91. collectd-mod-sqm \
  92. collectd-mod-df \
  93. pbr \
  94. luci-app-pbr \
  95. usbutils \
  96. kmod-usb-storage \
  97. kmod-usb-storage-uas \
  98. kmod-fs-btrfs \
  99. btrfs-progs \
  100. block-mount \
  101. smcroute \
  102. curl \
  103. ethtool \
  104. ca-bundle \
  105. tailscale"
  106. r4s['kopts']="\
  107. CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y \
  108. CONFIG_BTRFS_PROGS_ZSTD=y
  109. "
  110. r4s['files']="\
  111. /mnt/backup \
  112. "
  113. declare -Ag ax6000_stock
  114. ax6000_stock['profile']="xiaomi_redmi-router-ax6000-stock"
  115. ax6000_stock['target']="mediatek/filogic"
  116. ax6000_stock['release']="snapshot"
  117. ax6000_stock['filesystem']="squashfs"
  118. ax6000_stock['packages']="\
  119. $default_packages \
  120. -dnsmasq \
  121. -odhcpd-ipv6only \
  122. -nftables \
  123. -firewall4 \
  124. -kmod-nft-offload \
  125. collectd-mod-iwinfo"
  126. declare -Ag ax6000_uboot
  127. ax6000_uboot['profile']="xiaomi_redmi-router-ax6000-ubootmod"
  128. ax6000_uboot['target']="mediatek/filogic"
  129. ax6000_uboot['release']="snapshot"
  130. ax6000_uboot['filesystem']="squashfs"
  131. ax6000_uboot['packages']="\
  132. $default_packages \
  133. -dnsmasq \
  134. -odhcpd-ipv6only \
  135. -nftables \
  136. -firewall4 \
  137. -kmod-nft-offload \
  138. collectd-mod-iwinfo"
  139. declare -Ag totolink
  140. totolink['profile']="totolink_x5000r"
  141. totolink['target']="ramips/mt7621"
  142. totolink['filesystem']="squashfs"
  143. totolink['packages']="\
  144. $default_packages \
  145. -dnsmasq \
  146. -odhcpd-ipv6only \
  147. -nftables \
  148. -firewall4 \
  149. -kmod-nft-offload \
  150. collectd-mod-iwinfo"