profiles 4.8 KB

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