sudo rfkill unblock all &> /dev/null
sudo rfkill list &> /dev/null
sudo modprobe -r ideapad_laptop
以管理员的命令执行这个几个即可
#!/usr/bin/expect
spawn su root
expect "密码:"
send "xdmlc1314\r"
send "sudo rfkill unblock all &> /dev/null\r"
send "sudo rfkill list &> /dev/null\r"
send "sudo modprobe -r ideapad_laptop\r"
expect eof
exit
#开启wifi脚本