profiles 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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. iperf3 \
  14. bash \
  15. rsync \
  16. luci-app-wireguard \
  17. luci-proto-wireguard \
  18. luci-app-statistics \
  19. luci-app-attendedsysupgrade \
  20. collectd-mod-sensors \
  21. collectd-mod-thermal \
  22. collectd-mod-conntrack \
  23. collectd-mod-cpu"
  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-pbr \
  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-pbr \
  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 r2s_tr
  80. r2s_tr['profile']="friendlyarm_nanopi-r2s"
  81. r2s_tr['target']="rockchip/armv8"
  82. r2s_tr['filesystem']="ext4"
  83. r2s_tr['packages']="\
  84. $default_packages \
  85. luci-app-upnp \
  86. luci-app-wireguard \
  87. luci-app-pbr \
  88. luci-app-ddns \
  89. luci-app-statistics \
  90. collectd-mod-sensors \
  91. collectd-mod-thermal \
  92. collectd-mod-conntrack \
  93. curl \
  94. ethtool \
  95. travelmate"
  96. declare -Ag r4s
  97. r4s['profile']="friendlyarm_nanopi-r4s"
  98. r4s['target']="rockchip/armv8"
  99. r4s['filesystem']="ext4"
  100. r4s['packages']="\
  101. $default_packages \
  102. luci-app-ddns \
  103. irqbalance \
  104. collectd-mod-df \
  105. usbutils \
  106. kmod-usb-storage \
  107. kmod-usb-storage-uas \
  108. kmod-fs-btrfs \
  109. btrfs-progs \
  110. block-mount \
  111. smcroute \
  112. curl \
  113. ethtool \
  114. ca-bundle"
  115. r4s['kopts']="\
  116. CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y \
  117. CONFIG_BTRFS_PROGS_ZSTD=y \
  118. CONFIG_TARGET_ROOTFS_PARTSIZE=1024"
  119. r4s['nested_kopts']="CONFIG_TARGET_OPTIMIZATION=\"-O3 -pipe -mcpu=cortex-a72.cortex-a53+crypto+crc\""
  120. r4s['files']="\
  121. /mnt/backup"
  122. declare -Ag r4s_stock
  123. r4s_stock['profile']="friendlyarm_nanopi-r4s"
  124. r4s_stock['target']="rockchip/armv8"
  125. r4s_stock['filesystem']="ext4"
  126. # r4s_stock['packages']="\
  127. # $default_packages \
  128. # luci-app-ddns \
  129. # irqbalance \
  130. # collectd-mod-df \
  131. # usbutils \
  132. # kmod-usb-storage \
  133. # kmod-usb-storage-uas \
  134. # kmod-fs-btrfs \
  135. # btrfs-progs \
  136. # block-mount \
  137. # smcroute \
  138. # curl \
  139. # ethtool \
  140. # ca-bundle"
  141. # r4s_stock['kopts']="\
  142. # CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y \
  143. # CONFIG_BTRFS_PROGS_ZSTD=y \
  144. # CONFIG_TARGET_ROOTFS_PARTSIZE=1024"
  145. # r4s_stock['nested_kopts']="CONFIG_TARGET_OPTIMIZATION=\"-O3 -pipe -mcpu=cortex-a72.cortex-a53+crypto+crc\""
  146. # r4s_stock['files']="\
  147. # /mnt/backup"
  148. declare -Ag ax6000_stock
  149. ax6000_stock['profile']="xiaomi_redmi-router-ax6000-stock"
  150. ax6000_stock['target']="mediatek/filogic"
  151. ax6000_stock['release']="snapshot"
  152. ax6000_stock['filesystem']="squashfs"
  153. ax6000_stock['packages']="\
  154. $default_packages \
  155. -dnsmasq \
  156. -odhcpd-ipv6only \
  157. -nftables \
  158. -firewall4 \
  159. -kmod-nft-offload \
  160. collectd-mod-iwinfo"
  161. declare -Ag ax6000_uboot
  162. ax6000_uboot['profile']="xiaomi_redmi-router-ax6000-ubootmod"
  163. ax6000_uboot['target']="mediatek/filogic"
  164. ax6000_uboot['release']="snapshot"
  165. ax6000_uboot['filesystem']="squashfs"
  166. ax6000_uboot['packages']="\
  167. $default_packages \
  168. -dnsmasq \
  169. -odhcpd-ipv6only \
  170. -nftables \
  171. -firewall4 \
  172. -kmod-nft-offload \
  173. collectd-mod-iwinfo"
  174. declare -Ag totolink
  175. totolink['profile']="totolink_x5000r"
  176. totolink['target']="ramips/mt7621"
  177. totolink['filesystem']="squashfs"
  178. totolink['packages']="\
  179. $default_packages \
  180. -dnsmasq \
  181. -odhcpd-ipv6only \
  182. -nftables \
  183. -firewall4 \
  184. -kmod-nft-offload \
  185. collectd-mod-iwinfo"