profiles 4.6 KB

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