-
Notifications
You must be signed in to change notification settings - Fork 19
fix: few repo adjustments #1868
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| CONFIG_PACKAGE_htop=m | ||
| CONFIG_HTOP_LMSENSORS=y |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| CONFIG_PACKAGE_nano-full=m | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| #!/bin/bash | ||
|
|
||
| # | ||
| # Copyright (C) 2026 Nethesis S.r.l. | ||
| # SPDX-License-Identifier: GPL-2.0-only | ||
| # | ||
|
|
||
| # Runs a single apk subcommand with the user-added customfeeds.list | ||
| # (docs/design/distfeed.md "Upstream OpenWrt repositories") temporarily | ||
| # excluded, so automatic update paths never install a package that bypassed | ||
| # the NethSecurity distfeed/QA channel. Serialized via flock so overlapping | ||
| # invocations (cron, UI, manual admin apk use) don't race on the file. | ||
|
|
||
| LOCK=/var/run/apk-official.lock | ||
| CUSTOMFEEDS=/etc/apk/repositories.d/customfeeds.list | ||
| DISABLED="${CUSTOMFEEDS}.disabled" | ||
|
|
||
| exec 9>"$LOCK" | ||
| flock 9 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why flock is needed?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Confirmed: apk handles the lock.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not concerned about |
||
|
|
||
| [ -f "$CUSTOMFEEDS" ] && mv "$CUSTOMFEEDS" "$DISABLED" | ||
| apk "$@" | ||
| status=$? | ||
| [ -f "$DISABLED" ] && mv "$DISABLED" "$CUSTOMFEEDS" | ||
|
|
||
| exit $status | ||
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.
Remove i possible