Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions internal/app/ipc/openuc2/com.openuc2.deviceadmin.openuc2.varlink
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# com.openuc2.deviceadmin.openuc2 manages openUC2 OS-specific settings.
interface com.openuc2.deviceadmin.openuc2

# The service was unable to perform the requested operation for an unspecified reason.
error Unknown (description: string)

# NetworkManager

# UpdatePSKDropInFile updates the specified connection profile (as specified via file-based name,
# e.g. "wlan0-hotspot")'s Wi-Fi PSK drop-in snippet file (which is automatically determined)
# with the specified cleartext password.
# This operation does not try to regenerate the connection profile itself from the drop-in files.
method UpdatePSKDropInFile(connProfile: string, newPw: string) -> ()

# RegenerateConnProfile reassembles the file for the NetworkManager connection profile (specified by
# its file-based name, e.g. "wlan0-hotspot") from its constituent drop-in snippet files.
# This operation does not try to make NetworkManager reload the updated connection profile.
method RegenerateDropInConnProfile(connProfile: string) -> ()
277 changes: 277 additions & 0 deletions internal/app/ipc/openuc2/comopenuc2deviceadminopenuc2.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions internal/app/ipc/openuc2/generate.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package comopenuc2deviceadminopenuc2

//go:generate go tool varlink-go-interface-generator com.openuc2.deviceadmin.openuc2.varlink
10 changes: 2 additions & 8 deletions internal/app/server/routes/boot/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,8 @@ func shutdownViaSidecar(ctx context.Context, method string, scc *sc.Client, l go
if err != nil {
return errors.Wrap(err, "couldn't open connection to sidecar")
}
defer func() {
if conn == nil {
return
}
if err := conn.Close(); err != nil {
l.Error(errors.New("couldn't close connection to sidecar"))
}
}()
defer sc.CloseConn(conn, l)

switch method {
default:
return errors.Errorf("unknown sidecar method %s", method)
Expand Down
Loading
Loading