#!/bin/sh ########################################################################### # # Copyright (c) 2021-2023 Diality Inc. - All Rights Reserved. # # THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN # WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. # # @file wifi_disconnect_network.sh # # @author (last) Vy # @date (last) 26-Jan-2023 # @author (original) Behrouz NematiPour # @date (original) 11-May-2021 # ############################################################################ # Description # Lists all the available Access Points using nmcli command of NetworkManager module. # Parameters # No Parameters # Returns # Exit code # sources . ./_errors_ . ./_functions_ # variables PARAM_COUNT=0 # checks check_param_count "$#" "$PARAM_COUNT" # main nmcli connection delete $(nmcli -t -f NAME connection show --active) check_result "$?" "$ERR_CMDFAIL_WIFI_DELETE_CONNECTION" # exit gracefully sleep 0.1 echo "" exit 0