Mac Pro 5,1 6-Core 3.33GHz, 48GB, Sapphire RX580
Optical -- Apple Super Drive & MCE Internal Blu-ray
512GB SM 970 Pro NVMe/HighPoint 7101A/10.14.5
SonnetAllegro Pro USB 3/ 4TB WD/4TB - Barracuda
To disable wireless connection You may use this thread:
(there is described a way to autoCONNECT to a network, using Dbus and NetworkManager)
http://ubuntuforums.org/showthread.php?t=800330
create a nmcli script as described there and make it executable.
Then use the final script from my post which auto-enables the connection, and use the name of desired network to disable instead of VPNNAME and stop instead of start.
The network will be auto-disconnetcted in the given ammount of time.
Here is how script commands work by me:
And the connection breaks...Code:yan@yan-laptop:~$ nmcli Usage: nmcli connexion_name start|stop ---Available Connections: Auto eth0 Auto UbuntuAdhoc Auto Beeline_WiFi_FREE Auto Beeline_WiFi Auto TIS Auto wl11(tel.988-7636) Auto TDEBC-1-AP Auto Beeline_WiFi_PREMIUM Auto LPQ_Free ---Active Connections: Auto Beeline_WiFi yan@yan-laptop:~$ nmcli Auto\ Beeline_WiFi stop active_connection_path=/org/freedesktop/NetworkManager/ActiveConnection/3 method return sender=:1.2 -> dest=:1.350 reply_serial=2
This is no Zaku, boy!
$ rtfm -p -h -d Nintendo -i 3.00 -a hair
I deleted this post before I started any wars... but some of those proposed 'solutions' are criminal and made me angry!
I'm all calmed down now. Sorta.
Actually, the script to disable the connection using nmcli should look like this:
then put this script to autorunCode:#!/bin/bash for (( ; ; )); do # creating ifinite loop tested=$(nmcli|grep -c WIFI) # WIFI here is the name of desired connection to monitor. The results can be: # 0 - this connection does not exist # 1 - connection exists, but not active # 2 - connection exists, and is active case $tested in "0") echo "cannot find desired connection in avaliable list" ;; "1") echo "conection avaliable, but not connected" ;; "2") echo "connection seems to work, disabling it NOW" nmcli WIFI stop ;; esac # enter desired time between checks here. sleep 30 done
This is no Zaku, boy!
$ rtfm -p -h -d Nintendo -i 3.00 -a hair
Bookmarks