profiles 5.0 KB

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