Skip to content

Updated script to support UDM/UDMPro 2.x firmware #451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 17, 2023

Conversation

jinkang23
Copy link
Contributor

@jinkang23 jinkang23 commented Dec 16, 2022

Updated remote script to support UDM/UDM Pro 2.x firmware while preserving installation method for legacy UDM/UDM Pro 1.x firmware.

I've tested this and it works for my UDM Pro firmware 2.4.23.

For more details, refer to #416

@StiviiK
Copy link

StiviiK commented Dec 16, 2022

I think the message which device was detected could be a bit improved.
I am thinking of something like:

  • UDM/UDMP version <2.0.0 was detected
  • UniFi Router version >2.0.0 was detected

@jinkang23
Copy link
Contributor Author

I think the message which device was detected could be a bit improved. I am thinking of something like:

  • UDM/UDMP version <2.0.0 was detected
  • UniFi Router version >2.0.0 was detected

Thanks for the feedback. I've updated the script to echo the exact device model and version detected.

Copy link

@magicdude4eva magicdude4eva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified working on UDM Pro 2.4.23:

  _   _ ___  __  __   ___           _
 | | | |   \|  \/  | | _ ) ___  ___| |_
 | |_| | |) | |\/| | | _ \/ _ \/ _ \  _|
  \___/|___/|_|  |_| |___/\___/\___/\__|

 Execute any script when your udm system
 starts.

UniFi Dream Machine Pro version 2.4.23 was detected
Installing on-boot script...
Failed to disable unit: Unit file udm-boot.service does not exist.
Creating systemctl service file
Enabling UDM boot...
Created symlink /etc/systemd/system/multi-user.target.wants/udm-boot.service → /etc/systemd/system/udm-boot.service.
UDM Boot Script installed

Downloading CNI plugins script...
CNI plugins script installed
Executing CNI plugins script...
Downloading https://github.com/containernetworking/plugins/releases/download/v1.1.1/cni-plugins-linux-arm64-v1.1.1.tgz.sha256
Downloading https://github.com/containernetworking/plugins/releases/download/v1.1.1/cni-plugins-linux-arm64-v1.1.1.tgz
Pouring /data/.cache/cni-plugins/cni-plugins-linux-arm64-v1.1.1.tgz

Downloading CNI bridge script...
CNI bridge script installed
Executing CNI bridge script...
/data/on_boot.d/06-cni-bridge.sh

On boot script installation finished

You can now place your scripts in `/data/on_boot.d`

Copy link

@janknieling janknieling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm that it is working at the Dream Machine Pro with Firmware v.1.7.X and 2.4.X

@pshirshov
Copy link

Worked for me too, please merge.

@boostchicken
Copy link
Member

You guys are miracle workers. Warms my heart.

@boostchicken boostchicken merged commit b586b4b into unifi-utilities:main Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants