Phonesim
This commit is contained in:
12
.config/systemd/user/phonesim-modem.service
Normal file
12
.config/systemd/user/phonesim-modem.service
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Power on phonesim modem
|
||||||
|
After=phonesim.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/bin/bash %h/scripts/start-phonesim-modem.sh
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=yes
|
||||||
|
StandardOutput=journal
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
11
.config/systemd/user/phonesim.service
Normal file
11
.config/systemd/user/phonesim.service
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Phonesim service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/bin/phonesim -p 12345 /usr/share/phonesim/default.xml
|
||||||
|
Type=simple
|
||||||
|
RemainAfterExit=true
|
||||||
|
StandardOutput=journal
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
6
scripts/start-phonesim-modem.sh
Executable file
6
scripts/start-phonesim-modem.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
opts='--print-reply --system --dest=org.ofono /phonesim org.ofono.Modem.SetProperty'
|
||||||
|
/usr/bin/dbus-send $opts string:"Powered" variant:boolean:true
|
||||||
|
/usr/bin/dbus-send $opts string:"Online" variant:boolean:true
|
||||||
|
/usr/bin/python3 /home/kuba/git/ofono/test/list-modems | head -n 9
|
||||||
Reference in New Issue
Block a user