Top right corner of screen network ”disconnected” How does it work with a command,is /etc/init.d/networking/restart?I tested this command in the script,but The result is not the same as just clicking on disconnected.
Hello @baijianping1989
You can use ifconfig for connect & disconnect to network.
To begin with, you should check your connection name with
$ ifconfig
Then, you can type these commands (for eth0):
$ sudo ifconfig eth0 down
and
$ sudo ifconfig eth0 up
The changes looks after a few seconds later at your desktop.
Regards