profiles 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. #!/usr/bin/env bash
  2. # shellcheck disable=SC2034
  3. # Device profiles for openwrtbuilder
  4. # Default packages
  5. default_packages="luci luci-ssl luci-proto-wireguard luci-app-statistics \
  6. collectd-mod-sensors collectd-mod-thermal collectd-mod-conntrack \
  7. collectd-mod-cpu nano htop diffutils tar iperf3 zsh rsync \
  8. openssh-sftp-server"
  9. # Current devices
  10. declare -Ag r4s=(
  11. [mode]="source"
  12. [device]="friendlyarm_nanopi-r4s"
  13. [target]="rockchip/armv8"
  14. [filesystem]="ext4"
  15. [packages]="$default_packages luci-app-ddns luci-app-sqm irqbalance \
  16. collectd-mod-df usbutils kmod-usb-storage kmod-usb-storage-uas \
  17. kmod-fs-btrfs btrfs-progs block-mount smcroute avahi-daemon \
  18. curl ethtool ca-bundle tailscale"
  19. [config]="CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y CONFIG_BTRFS_PROGS_ZSTD=y \
  20. CONFIG_TARGET_ROOTFS_PARTSIZE=512 CONFIG_TARGET_KERNEL_PARTSIZE=32 \
  21. CONFIG_BUILDBOT=n"
  22. [files]="/mnt/backup"
  23. )
  24. declare -Ag ax6000=(
  25. [mode]="imagebuilder"
  26. [device]="xiaomi_redmi-router-ax6000-stock"
  27. [target]="mediatek/filogic"
  28. [release]="snapshot"
  29. [filesystem]="squashfs"
  30. [packages]="$default_packages -dnsmasq -odhcpd-ipv6only -nftables -firewall4 tailscale"
  31. )
  32. declare -Ag ax6000_uboot=(
  33. [mode]="imagebuilder"
  34. [device]="xiaomi_redmi-router-ax6000-ubootmod"
  35. [target]="mediatek/filogic"
  36. [release]="snapshot"
  37. [filesystem]="squashfs"
  38. [packages]="$default_packages -dnsmasq -odhcpd-ipv6only -nftables -firewall4"
  39. )
  40. declare -Ag n5100=(
  41. [device]="generic"
  42. [target]="x86/64"
  43. [filesystem]="squashfs"
  44. [packages]="$default_packages luci-app-ddns irqbalance collectd-mod-df \
  45. usbutils kmod-usb-storage kmod-usb-storage-uas kmod-fs-btrfs \
  46. btrfs-progs block-mount cryptsetup kmod-crypto-xts smcroute \
  47. avahi-daemon curl ethtool ca-bundle smartmontools intel-microcode \
  48. lm-sensors samba4-server luci-app-samba4 tailscale shadow-useradd"
  49. [config]="CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y CONFIG_BTRFS_PROGS_ZSTD=y \
  50. CONFIG_TARGET_ROOTFS_PARTSIZE=512 CONFIG_TARGET_KERNEL_PARTSIZE=32"
  51. # [files]="/mnt/backup"
  52. )
  53. declare -Ag rpi4=(
  54. [device]="rpi-4"
  55. [target]="bcm27xx/bcm2711"
  56. [filesystem]="ext4"
  57. [packages]="$default_packages kmod-usb-net-asix-ax88179 kmod-usb-net-rtl8152 \
  58. luci-app-upnp luci-app-pbr -dnsmasq dnsmasq-full luci-app-ddns luci-app-sqm"
  59. )
  60. declare -Ag r4s_stock=(
  61. [device]="friendlyarm_nanopi-r4s"
  62. [target]="rockchip/armv8"
  63. [filesystem]="ext4"
  64. [release]="snapshot"
  65. )
  66. declare -Ag totolink=(
  67. [device]="totolink_x5000r"
  68. [target]="ramips/mt7621"
  69. [filesystem]="squashfs"
  70. [packages]="$default_packages -dnsmasq -odhcpd-ipv6only -nftables -firewall4 \
  71. -kmod-nft-offload collectd-mod-iwinfo"
  72. )
  73. declare -Ag archer=(
  74. [device]="tplink_archer-c7-v2"
  75. [target]="ath79/generic"
  76. [filesystem]="squashfs"
  77. [packages]="$default_packages -dnsmasq -odhcpd -iptables \
  78. -ath10k-firmware-qca988x-ct ath10k-firmware-qca988x-ct-full-htt"
  79. )
  80. declare -Ag linksys=(
  81. [device]="linksys_ea8300"
  82. [target]="ipq40xx/generic"
  83. [filesystem]="squashfs"
  84. [packages]="$default_packages -dnsmasq -odhcpd -iptables"
  85. )
  86. declare -Ag r2s=(
  87. [device]="friendlyarm_nanopi-r2s"
  88. [target]="rockchip/armv8"
  89. [filesystem]="ext4"
  90. [packages]="$default_packages luci-app-upnp luci-app-pbr -dnsmasq dnsmasq-full \
  91. luci-app-ddns luci-app-sqm luci-app-statistics collectd-mod-sensors \
  92. collectd-mod-thermal collectd-mod-conntrack smcroute curl ethtool"
  93. )
  94. declare -Ag r2s_tr=(
  95. [device]="friendlyarm_nanopi-r2s"
  96. [target]="rockchip/armv8"
  97. [filesystem]="ext4"
  98. [packages]="$default_packages luci-app-upnp luci-app-pbr luci-app-ddns \
  99. luci-app-statistics collectd-mod-sensors collectd-mod-thermal \
  100. collectd-mod-conntrack curl ethtool travelmate"
  101. )