Docs: update ModemManager recommendation (#9328)

Instead of modifying the service file provided by the distro,
use drop-in functionaly to explicitly specify the policy.
master
Erovia 2020-07-07 19:22:38 +01:00 committed by GitHub
parent 5eb4675fda
commit e6bcc232ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9203", TAG+="uacc
**Note:** With older (before 1.12) ModemManager, filtering only works when not in strict mode, the following commands can update that settings: **Note:** With older (before 1.12) ModemManager, filtering only works when not in strict mode, the following commands can update that settings:
```console ```console
sudo sed -i 's/--filter-policy=strict/--filter-policy=default/' /lib/systemd/system/ModemManager.service printf '[Service]\nExecStart=\nExecStart=/usr/sbin/ModemManager --filter-policy=default' | sudo tee /etc/systemd/system/ModemManager.service.d/policy.conf
sudo systemctl daemon-reload sudo systemctl daemon-reload
sudo systemctl restart ModemManager sudo systemctl restart ModemManager
``` ```