Created
April 3, 2018 05:39
-
-
Save petrosagg/d4344e567c1a9d3f560fd28e78a13a37 to your computer and use it in GitHub Desktop.
utility script to stop ModemManager from inside a resin container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -o errexit | |
| export DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket | |
| dbus-send \ | |
| --system \ | |
| --print-reply \ | |
| --dest=org.freedesktop.systemd1 \ | |
| /org/freedesktop/systemd1 \ | |
| org.freedesktop.systemd1.Manager.StopUnit 'string:ModemManager.service' 'string:replace' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment