#!/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 nmcli connection up "$ID_FULL" exit 0 fi if nmcli connection show --active | grep "$ID_FULL" > /dev/null then nmcli connection up "$ID_LIGHT" exit 0 fi nmcli connection up "$ID_LIGHT"