22 lines
332 B
Bash
22 lines
332 B
Bash
|
#!/usr/bin/env sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
ID_LIGHT="0f9ed364-1b54-4a95-a45a-a24114f5be6b"
|
||
|
ID_FULL="fa9f53b2-29b4-4c0e-80ca-38937ef8cad8"
|
||
|
|
||
|
if nmcli connection show --active | grep "$ID_LIGHT" > /dev/null
|
||
|
then
|
||
|
echo -n
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
if nmcli connection show --active | grep "$ID_FULL" > /dev/null
|
||
|
then
|
||
|
echo -n 聯
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
echo -n 輦
|
||
|
|