Skip to content

Commit 4163384

Browse files
committed
feat: Add support for new UniFi models
1 parent cbd829e commit 4163384

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

on-boot-script-2.x/remote_install.sh

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ udm_model() {
7272
"UniFi Dream Router")
7373
echo "udr"
7474
;;
75+
"UniFi Dream Router 7")
76+
echo "udr7"
77+
;;
7578
"UniFi Dream Machine Pro Max")
7679
echo "udmpromax"
7780
;;
@@ -84,9 +87,18 @@ udm_model() {
8487
"UniFi Express")
8588
echo "ux"
8689
;;
90+
"UniFi Express 7")
91+
echo "ux7"
92+
;;
8793
"UniFi Cloud Gateway Fiber")
8894
echo "ucgfiber"
89-
;;
95+
;;
96+
"UniFi NeXt-Gen Gateway Fiber")
97+
echo "uxgfiber"
98+
;;
99+
"Enterprise Fortress Gateway")
100+
echo "udment"
101+
;;
90102
*)
91103
echo "unknown"
92104
;;
@@ -139,8 +151,8 @@ install_on_boot_udr_se() {
139151
rm -f "$SYMLINK_SYSTEMCTL"
140152

141153
echo "Creating systemctl service file"
142-
143-
if ! download_on_path "$SYSTEMCTL_PATH" "$SERVICE_META_URL"; then
154+
155+
if ! download_on_path "$SYSTEMCTL_PATH" "$SERVICE_META_URL"; then
144156
echo
145157
echo "Failed to download on-boot script service" 1>&2
146158
exit 1
@@ -176,7 +188,7 @@ udmlegacy | udmprolegacy)
176188
echo "UDM Boot Script installed"
177189
;;
178190

179-
udr | udmse | udm | udmpro | udmpromax | uxgmax | ucgult | ucgfiber | ux)
191+
udr | udmse | udm | udmpro | udmpromax | uxgmax | ucgult | ucgfiber | ux | uxgfiber | udr7 | ux7 | udment)
180192
echo "$(ubnt-device-info model) version $(ubnt-device-info firmware) was detected"
181193
echo "Installing on-boot script..."
182194
depends_on systemctl

0 commit comments

Comments
 (0)