profiles 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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 rpi4
  43. rpi4['device']="rpi-4"
  44. rpi4['target']="bcm27xx/bcm2711"
  45. rpi4['filesystem']="ext4"
  46. rpi4['packages']="\
  47. $default_packages \
  48. kmod-usb-net-asix-ax88179 \
  49. kmod-usb-net-rtl8152 \
  50. luci-app-upnp \
  51. luci-app-wireguard \
  52. luci-app-pbr \
  53. -dnsmasq \
  54. dnsmasq-full \
  55. luci-app-ddns \
  56. luci-app-sqm"
  57. # declare -Ag r2s
  58. # r2s['device']="friendlyarm_nanopi-r2s"
  59. # r2s['target']="rockchip/armv8"
  60. # r2s['filesystem']="ext4"
  61. # r2s['packages']="\
  62. # $default_packages \
  63. # luci-app-upnp \
  64. # luci-app-wireguard \
  65. # luci-app-pbr \
  66. # -dnsmasq \
  67. # dnsmasq-full \
  68. # luci-app-ddns \
  69. # luci-app-sqm \
  70. # luci-app-statistics \
  71. # collectd-mod-sensors \
  72. # collectd-mod-thermal \
  73. # collectd-mod-conntrack \
  74. # smcroute \
  75. # curl \
  76. # ethtool"
  77. # declare -Ag r2s_tr
  78. # r2s_tr['device']="friendlyarm_nanopi-r2s"
  79. # r2s_tr['target']="rockchip/armv8"
  80. # r2s_tr['filesystem']="ext4"
  81. # r2s_tr['packages']="\
  82. # $default_packages \
  83. # luci-app-upnp \
  84. # luci-app-wireguard \
  85. # luci-app-pbr \
  86. # luci-app-ddns \
  87. # luci-app-statistics \
  88. # collectd-mod-sensors \
  89. # collectd-mod-thermal \
  90. # collectd-mod-conntrack \
  91. # curl \
  92. # ethtool \
  93. # travelmate"
  94. declare -Ag r4s
  95. r4s['device']="friendlyarm_nanopi-r4s"
  96. r4s['target']="rockchip/armv8"
  97. r4s['filesystem']="ext4"
  98. r4s['packages']="\
  99. $default_packages \
  100. luci-app-wireguard \
  101. luci-proto-wireguard \
  102. luci-app-ddns \
  103. irqbalance \
  104. collectd-mod-df \
  105. usbutils \
  106. kmod-usb-storage \
  107. kmod-usb-storage-uas \
  108. kmod-fs-btrfs \
  109. btrfs-progs \
  110. block-mount \
  111. smcroute \
  112. avahi-daemon \
  113. curl \
  114. ethtool \
  115. ca-bundle \
  116. -libustream-wolfssl"
  117. # The following are source mode only
  118. r4s['kopts']="\
  119. CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y \
  120. CONFIG_BTRFS_PROGS_ZSTD=y \
  121. CONFIG_TARGET_ROOTFS_PARTSIZE=1024"
  122. r4s['files']="\
  123. /mnt/backup"
  124. # declare -Ag r4s_stock
  125. # r4s_stock['device']="friendlyarm_nanopi-r4s"
  126. # r4s_stock['target']="rockchip/armv8"
  127. # r4s_stock['filesystem']="ext4"
  128. # r4s_stock['release']="snapshot"
  129. declare -Ag ax6000
  130. ax6000['device']="xiaomi_redmi-router-ax6000-stock"
  131. ax6000['target']="mediatek/filogic"
  132. ax6000['release']="snapshot"
  133. ax6000['filesystem']="squashfs"
  134. ax6000['packages']="\
  135. $default_packages \
  136. -dnsmasq \
  137. -odhcpd-ipv6only \
  138. -nftables \
  139. -firewall4 \
  140. -kmod-nft-offload \
  141. collectd-mod-iwinfo \
  142. mesh11sd \
  143. -wpad-basic-mbedtls \
  144. wpad-mesh-mbedtls"
  145. # declare -Ag ax6000_uboot
  146. # ax6000_uboot['device']="xiaomi_redmi-router-ax6000-ubootmod"
  147. # ax6000_uboot['target']="mediatek/filogic"
  148. # ax6000_uboot['release']="snapshot"
  149. # ax6000_uboot['filesystem']="squashfs"
  150. # ax6000_uboot['packages']="\
  151. # $default_packages \
  152. # -dnsmasq \
  153. # -odhcpd-ipv6only \
  154. # -nftables \
  155. # -firewall4 \
  156. # -kmod-nft-offload \
  157. # collectd-mod-iwinfo"
  158. # declare -Ag totolink
  159. # totolink['device']="totolink_x5000r"
  160. # totolink['target']="ramips/mt7621"
  161. # totolink['filesystem']="squashfs"
  162. # totolink['packages']="\
  163. # $default_packages \
  164. # -dnsmasq \
  165. # -odhcpd-ipv6only \
  166. # -nftables \
  167. # -firewall4 \
  168. # -kmod-nft-offload \
  169. # collectd-mod-iwinfo"