profiles 4.3 KB

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