profiles 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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. luci-proto-wireguard \
  10. luci-app-statistics \
  11. collectd-mod-sensors \
  12. collectd-mod-thermal \
  13. collectd-mod-conntrack \
  14. collectd-mod-cpu \
  15. nano \
  16. htop \
  17. diffutils \
  18. tar \
  19. iperf3 \
  20. zsh \
  21. rsync \
  22. openssh-sftp-server \
  23. "
  24. # Current devices
  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-ddns \
  33. luci-app-sqm \
  34. irqbalance \
  35. collectd-mod-df \
  36. usbutils \
  37. kmod-usb-storage \
  38. kmod-usb-storage-uas \
  39. kmod-fs-btrfs \
  40. btrfs-progs \
  41. block-mount \
  42. smcroute \
  43. avahi-daemon \
  44. curl \
  45. ethtool \
  46. ca-bundle"
  47. # The following only work in --source mode
  48. r4s['config']="\
  49. CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y \
  50. CONFIG_BTRFS_PROGS_ZSTD=y \
  51. CONFIG_TARGET_ROOTFS_PARTSIZE=512 \
  52. CONFIG_TARGET_KERNEL_PARTSIZE=32 \
  53. CONFIG_BUILDBOT=n"
  54. r4s['files']="\
  55. /mnt/backup"
  56. # Access point
  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 uboot'd access points
  69. declare -Ag ax6000_uboot
  70. ax6000_uboot['device']="xiaomi_redmi-router-ax6000-ubootmod"
  71. ax6000_uboot['target']="mediatek/filogic"
  72. ax6000_uboot['release']="snapshot"
  73. ax6000_uboot['filesystem']="squashfs"
  74. ax6000_uboot['packages']="\
  75. $default_packages \
  76. -dnsmasq \
  77. -odhcpd-ipv6only \
  78. -nftables \
  79. -firewall4"
  80. # Remote NAS
  81. declare -Ag n5100
  82. n5100['device']="generic"
  83. n5100['target']="x86/64"
  84. n5100['filesystem']="squashfs"
  85. n5100['packages']="\
  86. $default_packages \
  87. luci-app-ddns \
  88. irqbalance \
  89. collectd-mod-df \
  90. usbutils \
  91. kmod-usb-storage \
  92. kmod-usb-storage-uas \
  93. kmod-fs-btrfs \
  94. btrfs-progs \
  95. block-mount \
  96. cryptsetup \
  97. kmod-crypto-xts \
  98. smcroute \
  99. avahi-daemon \
  100. curl \
  101. ethtool \
  102. ca-bundle \
  103. smartmontools \
  104. intel-microcode \
  105. lm-sensors \
  106. samba4-server \
  107. luci-app-samba4 \
  108. tailscale \
  109. shadow-useradd"
  110. # The following are source mode only
  111. n5100['config']="\
  112. CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y \
  113. CONFIG_BTRFS_PROGS_ZSTD=y \
  114. CONFIG_TARGET_ROOTFS_PARTSIZE=512 \
  115. CONFIG_TARGET_KERNEL_PARTSIZE=32"
  116. n5100['files']="\
  117. /mnt/backup"
  118. # Dusty drawer
  119. declare -Ag rpi4
  120. rpi4['device']="rpi-4"
  121. rpi4['target']="bcm27xx/bcm2711"
  122. rpi4['filesystem']="ext4"
  123. rpi4['packages']="\
  124. $default_packages \
  125. kmod-usb-net-asix-ax88179 \
  126. kmod-usb-net-rtl8152 \
  127. luci-app-upnp \
  128. luci-app-pbr \
  129. -dnsmasq \
  130. dnsmasq-full \
  131. luci-app-ddns \
  132. luci-app-sqm"
  133. # Stock builds
  134. declare -Ag r4s_stock
  135. r4s_stock['device']="friendlyarm_nanopi-r4s"
  136. r4s_stock['target']="rockchip/armv8"
  137. r4s_stock['filesystem']="ext4"
  138. r4s_stock['release']="snapshot"
  139. # Old devices
  140. declare -Ag totolink
  141. totolink['device']="totolink_x5000r"
  142. totolink['target']="ramips/mt7621"
  143. totolink['filesystem']="squashfs"
  144. totolink['packages']="\
  145. $default_packages \
  146. -dnsmasq \
  147. -odhcpd-ipv6only \
  148. -nftables \
  149. -firewall4 \
  150. -kmod-nft-offload \
  151. collectd-mod-iwinfo"
  152. declare -Ag archer
  153. archer['device']="tplink_archer-c7-v2"
  154. archer['target']="ath79/generic"
  155. archer['filesystem']="squashfs"
  156. archer['packages']="\
  157. $default_packages \
  158. -dnsmasq \
  159. -odhcpd \
  160. -iptables \
  161. -ath10k-firmware-qca988x-ct \
  162. ath10k-firmware-qca988x-ct-full-htt"
  163. declare -Ag linksys
  164. linksys['device']="linksys_ea8300"
  165. linksys['target']="ipq40xx/generic"
  166. linksys['filesystem']="squashfs"
  167. linksys['packages']="\
  168. $default_packages \
  169. -dnsmasq \
  170. -odhcpd \
  171. -iptables"
  172. declare -Ag r2s
  173. r2s['device']="friendlyarm_nanopi-r2s"
  174. r2s['target']="rockchip/armv8"
  175. r2s['filesystem']="ext4"
  176. r2s['packages']="\
  177. $default_packages \
  178. luci-app-upnp \
  179. luci-app-pbr \
  180. -dnsmasq \
  181. dnsmasq-full \
  182. luci-app-ddns \
  183. luci-app-sqm \
  184. luci-app-statistics \
  185. collectd-mod-sensors \
  186. collectd-mod-thermal \
  187. collectd-mod-conntrack \
  188. smcroute \
  189. curl \
  190. ethtool"
  191. declare -Ag r2s_tr
  192. r2s_tr['device']="friendlyarm_nanopi-r2s"
  193. r2s_tr['target']="rockchip/armv8"
  194. r2s_tr['filesystem']="ext4"
  195. r2s_tr['packages']="\
  196. $default_packages \
  197. luci-app-upnp \
  198. luci-app-pbr \
  199. luci-app-ddns \
  200. luci-app-statistics \
  201. collectd-mod-sensors \
  202. collectd-mod-thermal \
  203. collectd-mod-conntrack \
  204. curl \
  205. ethtool \
  206. travelmate"