-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Update ubus.markdown #38683
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
Update ubus.markdown #38683
Conversation
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
📝 WalkthroughWalkthroughThe documentation for the Ubus integration has been updated to clarify the handling of the ACL file during OpenWrt firmware upgrades. The previous guidance, which suggested that the ACL file must be recreated after every update, has been replaced. The new instructions advise users to add the ACL file path to Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant OpenWrt System
User->>OpenWrt System: Create ACL file
User->>OpenWrt System: Add ACL file path to /etc/sysupgrade.conf
Note right of OpenWrt System: Ensures ACL file persists after upgrade
User->>OpenWrt System: Restart rpcd and uhttpd services
OpenWrt System-->>User: Services restarted with ACL changes applied
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
source/_integrations/ubus.markdown (1)
60-60
: Clarify persistence instructions and provide command examples
The current line “Restart the services. Add the file to /etc/sysupgrade.conf …” bundles two steps and omits the exact file path and method to append it. Splitting into separate instructions and showing concrete commands will improve clarity.- Restart the services. Add the file to /etc/sysupgrade.conf so that it remains after updating/upgrading your OpenWrt firmware. + Restart the services: + + ```bash + /etc/init.d/rpcd restart && /etc/init.d/uhttpd restart + ``` + + To keep the ACL file (`/usr/share/rpcd/acl.d/hass.json`) across OpenWrt firmware upgrades, append it to `/etc/sysupgrade.conf`: + + ```bash + echo '/usr/share/rpcd/acl.d/hass.json' >> /etc/sysupgrade.conf + ```
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/ubus.markdown
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: Redirect rules - home-assistant-docs
- GitHub Check: Header rules - home-assistant-docs
- GitHub Check: Pages changed - home-assistant-docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than that small nit LGTM, thanks!
Co-authored-by: Stefan Agner <stefan@agner.ch>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @loyukfai 👍
Proposed change
Add the hass.json file to /etc/sysupgrade.conf so that it remains after upgrade.
Type of change
current
branch).Checklist
current
branch.next
branch.Summary by CodeRabbit
/etc/sysupgrade.conf
instead of recreating it after each update.