profiles 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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-statistics \
  17. luci-app-attendedsysupgrade \
  18. collectd-mod-sensors \
  19. collectd-mod-thermal \
  20. collectd-mod-conntrack \
  21. collectd-mod-cpu"
  22. #################
  23. # Current devices
  24. #################
  25. # Main router
  26. declare -Ag r4s
  27. r4s['device']="friendlyarm_nanopi-r4s"
  28. r4s['target']="rockchip/armv8"
  29. r4s['filesystem']="ext4"
  30. r4s['packages']="\
  31. $default_packages \
  32. luci-app-wireguard \
  33. luci-proto-wireguard \
  34. luci-app-ddns \
  35. irqbalance \
  36. collectd-mod-df \
  37. usbutils \
  38. kmod-usb-storage \
  39. kmod-usb-storage-uas \
  40. kmod-fs-btrfs \
  41. btrfs-progs \
  42. block-mount \
  43. smcroute \
  44. avahi-daemon \
  45. curl \
  46. ethtool \
  47. ca-bundle \
  48. -libustream-wolfssl"
  49. # The following are source mode only
  50. r4s['kopts']="\
  51. CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y \
  52. CONFIG_BTRFS_PROGS_ZSTD=y \
  53. CONFIG_TARGET_ROOTFS_PARTSIZE=512 \
  54. CONFIG_TARGET_KERNEL_PARTSIZE=32"
  55. r4s['files']="\
  56. /mnt/backup"
  57. # WDS mesh nodes
  58. declare -Ag ax6000
  59. ax6000['device']="xiaomi_redmi-router-ax6000-stock"
  60. ax6000['target']="mediatek/filogic"
  61. ax6000['release']="snapshot"
  62. ax6000['filesystem']="squashfs"
  63. ax6000['packages']="\
  64. $default_packages \
  65. -dnsmasq \
  66. -odhcpd-ipv6only \
  67. -nftables \
  68. -firewall4"
  69. # for 802.11s
  70. # mesh11sd \
  71. # -wpad-basic-mbedtls \
  72. # wpad-mesh-mbedtls"
  73. # For converted uboots
  74. # declare -Ag ax6000_uboot
  75. # ax6000_uboot['device']="xiaomi_redmi-router-ax6000-ubootmod"
  76. # ax6000_uboot['target']="mediatek/filogic"
  77. # ax6000_uboot['release']="snapshot"
  78. # ax6000_uboot['filesystem']="squashfs"
  79. # ax6000_uboot['packages']="\
  80. # $default_packages \
  81. # -dnsmasq \
  82. # -odhcpd-ipv6only \
  83. # -nftables \
  84. # -firewall4 \
  85. # -kmod-nft-offload \
  86. # collectd-mod-iwinfo"
  87. # Remote NAS
  88. declare -Ag n5100
  89. n5100['device']="generic"
  90. n5100['target']="x86/64"
  91. n5100['filesystem']="ext4"
  92. n5100['packages']="\
  93. $default_packages \
  94. luci-app-wireguard \
  95. luci-proto-wireguard \
  96. luci-app-ddns \
  97. irqbalance \
  98. collectd-mod-df \
  99. usbutils \
  100. kmod-usb-storage \
  101. kmod-usb-storage-uas \
  102. kmod-fs-btrfs \
  103. btrfs-progs \
  104. block-mount \
  105. smcroute \
  106. avahi-daemon \
  107. curl \
  108. ethtool \
  109. ca-bundle \
  110. smartmontools \
  111. intel-microcode \
  112. lm-sensors \
  113. -libustream-wolfssl"
  114. # The following are source mode only
  115. n5100['kopts']="\
  116. CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y \
  117. CONFIG_BTRFS_PROGS_ZSTD=y \
  118. CONFIG_TARGET_ROOTFS_PARTSIZE=512 \
  119. CONFIG_TARGET_KERNEL_PARTSIZE=32"
  120. n5100['files']="\
  121. /mnt/backup"
  122. # Dusty drawer
  123. declare -Ag rpi4
  124. rpi4['device']="rpi-4"
  125. rpi4['target']="bcm27xx/bcm2711"
  126. rpi4['filesystem']="ext4"
  127. rpi4['packages']="\
  128. $default_packages \
  129. kmod-usb-net-asix-ax88179 \
  130. kmod-usb-net-rtl8152 \
  131. luci-app-upnp \
  132. luci-app-wireguard \
  133. luci-app-pbr \
  134. -dnsmasq \
  135. dnsmasq-full \
  136. luci-app-ddns \
  137. luci-app-sqm"
  138. #################
  139. # Stock builds
  140. #################
  141. declare -Ag r4s_stock
  142. r4s_stock['device']="friendlyarm_nanopi-r4s"
  143. r4s_stock['target']="rockchip/armv8"
  144. r4s_stock['filesystem']="ext4"
  145. r4s_stock['release']="snapshot"
  146. #################
  147. # Old devices
  148. #################
  149. declare -Ag totolink
  150. totolink['device']="totolink_x5000r"
  151. totolink['target']="ramips/mt7621"
  152. totolink['filesystem']="squashfs"
  153. totolink['packages']="\
  154. $default_packages \
  155. -dnsmasq \
  156. -odhcpd-ipv6only \
  157. -nftables \
  158. -firewall4 \
  159. -kmod-nft-offload \
  160. collectd-mod-iwinfo"
  161. declare -Ag archer
  162. archer['device']="tplink_archer-c7-v2"
  163. archer['target']="ath79/generic"
  164. archer['filesystem']="squashfs"
  165. archer['packages']="\
  166. $default_packages \
  167. -dnsmasq \
  168. -odhcpd \
  169. -iptables \
  170. -ath10k-firmware-qca988x-ct \
  171. ath10k-firmware-qca988x-ct-full-htt"
  172. declare -Ag linksys
  173. linksys['device']="linksys_ea8300"
  174. linksys['target']="ipq40xx/generic"
  175. linksys['filesystem']="squashfs"
  176. linksys['packages']="\
  177. $default_packages \
  178. -dnsmasq \
  179. -odhcpd \
  180. -iptables"
  181. declare -Ag r2s
  182. r2s['device']="friendlyarm_nanopi-r2s"
  183. r2s['target']="rockchip/armv8"
  184. r2s['filesystem']="ext4"
  185. r2s['packages']="\
  186. $default_packages \
  187. luci-app-upnp \
  188. luci-app-wireguard \
  189. luci-app-pbr \
  190. -dnsmasq \
  191. dnsmasq-full \
  192. luci-app-ddns \
  193. luci-app-sqm \
  194. luci-app-statistics \
  195. collectd-mod-sensors \
  196. collectd-mod-thermal \
  197. collectd-mod-conntrack \
  198. smcroute \
  199. curl \
  200. ethtool"
  201. declare -Ag r2s_tr
  202. r2s_tr['device']="friendlyarm_nanopi-r2s"
  203. r2s_tr['target']="rockchip/armv8"
  204. r2s_tr['filesystem']="ext4"
  205. r2s_tr['packages']="\
  206. $default_packages \
  207. luci-app-upnp \
  208. luci-app-wireguard \
  209. luci-app-pbr \
  210. luci-app-ddns \
  211. luci-app-statistics \
  212. collectd-mod-sensors \
  213. collectd-mod-thermal \
  214. collectd-mod-conntrack \
  215. curl \
  216. ethtool \
  217. travelmate"