profiles 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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']="ext4"
  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. smcroute \
  117. avahi-daemon \
  118. curl \
  119. ethtool \
  120. ca-bundle \
  121. smartmontools \
  122. intel-microcode \
  123. lm-sensors \
  124. samba4-server \
  125. luci-app-samba4 \
  126. tailscale \
  127. shadow-useradd"
  128. # The following are source mode only
  129. n5100['kopts']="\
  130. CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y \
  131. CONFIG_BTRFS_PROGS_ZSTD=y \
  132. CONFIG_TARGET_ROOTFS_PARTSIZE=512 \
  133. CONFIG_TARGET_KERNEL_PARTSIZE=32"
  134. n5100['files']="\
  135. /mnt/backup"
  136. # Dusty drawer
  137. declare -Ag rpi4
  138. rpi4['device']="rpi-4"
  139. rpi4['target']="bcm27xx/bcm2711"
  140. rpi4['filesystem']="ext4"
  141. rpi4['packages']="\
  142. $default_packages \
  143. kmod-usb-net-asix-ax88179 \
  144. kmod-usb-net-rtl8152 \
  145. luci-app-upnp \
  146. luci-app-wireguard \
  147. luci-app-pbr \
  148. -dnsmasq \
  149. dnsmasq-full \
  150. luci-app-ddns \
  151. luci-app-sqm"
  152. #################
  153. # Stock builds
  154. #################
  155. declare -Ag r4s_stock
  156. r4s_stock['device']="friendlyarm_nanopi-r4s"
  157. r4s_stock['target']="rockchip/armv8"
  158. r4s_stock['filesystem']="ext4"
  159. r4s_stock['release']="snapshot"
  160. #################
  161. # Old devices
  162. #################
  163. declare -Ag totolink
  164. totolink['device']="totolink_x5000r"
  165. totolink['target']="ramips/mt7621"
  166. totolink['filesystem']="squashfs"
  167. totolink['packages']="\
  168. $default_packages \
  169. -dnsmasq \
  170. -odhcpd-ipv6only \
  171. -nftables \
  172. -firewall4 \
  173. -kmod-nft-offload \
  174. collectd-mod-iwinfo"
  175. declare -Ag archer
  176. archer['device']="tplink_archer-c7-v2"
  177. archer['target']="ath79/generic"
  178. archer['filesystem']="squashfs"
  179. archer['packages']="\
  180. $default_packages \
  181. -dnsmasq \
  182. -odhcpd \
  183. -iptables \
  184. -ath10k-firmware-qca988x-ct \
  185. ath10k-firmware-qca988x-ct-full-htt"
  186. declare -Ag linksys
  187. linksys['device']="linksys_ea8300"
  188. linksys['target']="ipq40xx/generic"
  189. linksys['filesystem']="squashfs"
  190. linksys['packages']="\
  191. $default_packages \
  192. -dnsmasq \
  193. -odhcpd \
  194. -iptables"
  195. declare -Ag r2s
  196. r2s['device']="friendlyarm_nanopi-r2s"
  197. r2s['target']="rockchip/armv8"
  198. r2s['filesystem']="ext4"
  199. r2s['packages']="\
  200. $default_packages \
  201. luci-app-upnp \
  202. luci-app-wireguard \
  203. luci-app-pbr \
  204. -dnsmasq \
  205. dnsmasq-full \
  206. luci-app-ddns \
  207. luci-app-sqm \
  208. luci-app-statistics \
  209. collectd-mod-sensors \
  210. collectd-mod-thermal \
  211. collectd-mod-conntrack \
  212. smcroute \
  213. curl \
  214. ethtool"
  215. declare -Ag r2s_tr
  216. r2s_tr['device']="friendlyarm_nanopi-r2s"
  217. r2s_tr['target']="rockchip/armv8"
  218. r2s_tr['filesystem']="ext4"
  219. r2s_tr['packages']="\
  220. $default_packages \
  221. luci-app-upnp \
  222. luci-app-wireguard \
  223. luci-app-pbr \
  224. luci-app-ddns \
  225. luci-app-statistics \
  226. collectd-mod-sensors \
  227. collectd-mod-thermal \
  228. collectd-mod-conntrack \
  229. curl \
  230. ethtool \
  231. travelmate"