#!/bin/sh
sudo route del default
if nmcli dev wifi list | grep "^\*" | grep -v SSID | grep -q Baikonur ; then
    echo "Baikonur"
    sudo route add default gw 192.168.1.1 wlan0
else
    echo "Hotspot"
    sudo route add default gw 192.168.8.1 wlan0
fi
