Linux上如何关闭闪烁的WiFi指示灯

在有些Linux发行版上,WiFi指示灯在通信时不停的闪烁。下面给出一种方法停止这种闪烁:

#!/bin/sh

if [ "`id -u`" != "`id -u root`" ]; then
    echo "`whoami`: you need root priviledge to run this application. Invkoing sudo ..." 
    exec sudo bash -c "$0 $@"
fi

for trigger in /sys/class/leds/iwl-*X/trigger; do
    echo none > $trigger
    cat $trigger
done


Your rating: None Average: 3 (10 votes)

发表新评论

此内容将保密,不会被其他人看见。 If you have a Gravatar account, used to display your avatar.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.