Files
pmaports-rtwo/main/postmarketos-usb-moded/rootfs-etc-init.d-usb-moded-developer-mode.initd
T
Dylan Van Assche 7a917eee3c main/postmarketos-usb-moded: handle initramfs situation
initramfs starts USB NCM gadget and unudhcpd for SSH login.
This requires special handling since unudhpcd is unmanaged by the
service manager until the userspace is started. Once entered in userspace,
the usb-moded-developer-mode needs to be activated which configures
NetworkManager and starts unudhcpd under the service manager.
This way, a full handover is possible and the gadgets can be properly
switched without any leftovers from the initramfs due to the unmanaged
situation.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8553>
2026-06-18 06:27:13 +00:00

14 lines
186 B
Plaintext

#!/sbin/openrc-run
description="USB Moded Developer Mode"
command="usb-moded-developer-mode"
command_args="up"
depends() {
need net
}
stop() {
usb-moded-developer-mode down
}