古人智慧

Just Do it!
上士聞道,勤而行之;中士聞道,若存若亡;下士聞道,大笑之。不笑,不足以爲道。
~ 道德經 41

「實現夢想不是追逐成功,而是在於賦予生命意義,人生中的每個決定與聲音都有其重要含義。」"The key to realizing a dream is to focus not on success but on significance — and then even the small steps and little victories along your path will take on greater meaning."
電視名人-歐普拉·溫芙蕾(OPRAH WINFREY)

搜尋此網誌

Translation

2016年7月24日 星期日

[Banana] turn off the wifi

Banana Pro使用在有線的情況下,如果要把Wifi關掉,怎麼做?
很簡單,用這個指令:


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

沒有留言:

張貼留言