Skip to content

Update install.sh for RF24Gateway changes - #41

Merged
TMRh20 merged 1 commit into
mainfrom
RF24GatewayAsAService
Nov 8, 2026
Merged

TMRh20 merged 1 commit into
mainfrom
RF24GatewayAsAService

Conversation

@TMRh20

@TMRh20 TMRh20 commented Nov 8, 2026

Copy link
Copy Markdown
Member
  • Adds an optional step after RF24Gateway is installed. It's off by default, so existing installs behave as before.
  • Asks for the mode (headless, ncurses or ncursesint), then builds and installs the service from RF24Gateway's service/ folder.
  • Skips the service with a message if there's no service/ folder, the RF24 driver isn't SPIDEV, or systemd isn't present.
  • Installs libncurses-dev and screen if the GUI modes need them.
  • Runs the service as a non-root user (default rf24gateway).
  • Asks for the IP, netmask, channel and allowed nodeIDs (allowed_nodes) on every install. Each prompt shows the current value, and Enter keeps it.
  • Optional AES-CCM encryption: generate a random key, or paste the key from an nrf_to_nrf sketch. The key is shown back for confirmation, typing h lists the
    accepted formats, and an existing key is shown before you choose to keep it.
  • Saves the key with restricted permissions and prints the matching sketch code.
  • Enables the service and offers to start it.
  • Fix: rebuilds RF24Mesh when a CCM-enabled RF24Gateway needs it.
  • Depends on Run RF24Gateway as a service RF24Gateway#66

@TMRh20

TMRh20 commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

@2bndy5 if I remember correctly, you have a RPi?

If you have a chance and the ability, can you try running the installer, specifically the "install as service" functionality out. Probably the quickest way to go through the changes as users see them.

I have 2 RPi4 model b and a RPi5 Model b, all running RPI OS, so I am mostly interested if you have a different model or OS to test with.

@TMRh20
TMRh20 requested a review from 2bndy5 November 8, 2026 15:59

@2bndy5 2bndy5 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That is a surprising amount of script...

@TMRh20

TMRh20 commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

Heh, yeah for me it was a lot to go over. I'm still reviewing it myself 😃

I tested on all 3 machines and it seems to work

@TMRh20
TMRh20 merged commit 1f1088e into main Nov 8, 2026
1 check passed
@TMRh20
TMRh20 deleted the RF24GatewayAsAService branch November 8, 2026 20:35
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.

2 participants