Last active
April 29, 2021 08:49
-
-
Save calebccff/bf051fbae9377a1b7a210b891c894bd6 to your computer and use it in GitHub Desktop.
This file contains 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/bash | |
exec &> /var/log/sdm845-modem-prepare.log | |
AID=$(qmicli -d qrtr://0 -p --uim-get-card-status | grep -E "([A-Z0-9]{2}:){15}[A-Z0-9]{2}" | xargs) | |
while [ -z "$AID" ]; do | |
sleep 2 | |
AID=$(qmicli -d qrtr://0 -p --uim-get-card-status | grep -E "([A-Z0-9]{2}:){15}[A-Z0-9]{2}" | xargs) | |
done | |
qmicli -p -d qrtr://0 --uim-change-provisioning-session="slot=1,activate=yes,session-type=primary-gw-provisioning,aid=$AID" | |
qmicli -d qrtr://0 -p --dpm-open-port="hw-data-ep-type=embedded,hw-data-ep-iface-number=1,hw-data-rx-id=2,hw-data-tx-id=10" | |
exit 0 |
minor correction. its not
Enable:
sudo rc-update add default sdm845-modem-prepare
its
sudo rc-update add sdm845-modem-prepare default
minor correction. its not
Enable:
sudo rc-update add default sdm845-modem-prepare
its
sudo rc-update add sdm845-modem-prepare default
Cheers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Place script in
/usr/libexec/sdm845-modem-prepare
Then
chmod +x /usr/libexec/sdm845-modem-prepare
Add service file
/etc/init.d/sdm845-modem-prepare
:Enable:
sudo rc-update add sdm845-modem-prepare default