很簡單,用這個指令:
sudo ifconfig wlan2 down
如果要在系統startup的時候就執行這個指令,就在直接在 /etc/rc.local加入這一行。
sudo nano /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
#turn off the wifi
ifconfig wlan2 down
沒有留言:
張貼留言