[Linux] Restart ubuntu wifi without reboot

Wifi under Ubuntu env often fail to find signal.
Here is how to restart Wifi setting without reboot.

1
$ sudo lshw -C network 2>&1 | grep wireless | grep driver

# need "driver='name'" for a next step
>> configuration: broadcast=yes driver=iwlwifi driverversion=4.15.0-45-generic firmware=18.168.6.1 latency=0 link=no multicast=yes wireless=IEEE 802.11
1
$ sudo modprobe -r iwlwifi && sudo modprobe iwlwifi

Clear.

< !-- add by yurixu 替换Google的jquery并且添加判断逻辑 -->