mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-31 00:02:18 +02:00
src: watch ofono service for new modem
If system is using ofono, use ofono dbus service to figure out the modem's USB id.
This commit is contained in:
11
src/libgdbofono/dbus-introspect.sh
Executable file
11
src/libgdbofono/dbus-introspect.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
DEST="$1"
|
||||
OBJ_PATH="$2"
|
||||
METHOD="$3"
|
||||
shift 3
|
||||
|
||||
dbus-send "$@" --print-reply --dest="$DEST" "$OBJ_PATH" "$METHOD" | \
|
||||
grep -v '^method return' | \
|
||||
sed -e 's/^[[:space:]]\+string "</</' \
|
||||
-e 's_</node>"_</node>_'
|
Reference in New Issue
Block a user