Add warnings to modem scripts if the modem is not present
This commit is contained in:
parent
b4c02acb76
commit
fa3550c638
6 changed files with 25 additions and 6 deletions
|
@ -8,7 +8,9 @@ err() {
|
|||
}
|
||||
|
||||
modem_n() {
|
||||
mmcli -L | grep -oE 'Modem\/([0-9]+)' | cut -d'/' -f2
|
||||
MODEMS="$(mmcli -L)"
|
||||
echo "$MODEMS" | grep -oE 'Modem\/([0-9]+)' > /dev/null || err "Couldn't find modem - is you're modem enabled?"
|
||||
echo "$MODEMS" | grep -oE 'Modem\/([0-9]+)' | cut -d'/' -f2
|
||||
}
|
||||
|
||||
textcontacts() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue