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>
14 lines
245 B
Desktop File
14 lines
245 B
Desktop File
[Unit]
|
|
Description=USB Moded Developer Mode
|
|
Wants=network.target
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=usb-moded-developer-mode up
|
|
ExecStop=usb-moded-developer-mode down
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|