Posted by ugaciaka on Wed 29 Oct 16:30
report abuse | download | new post
- #!/bin/zsh
- STATO=$(cat /sys/devices/platform/asus-laptop/wlan)
- if [ $STATO -eq 0 ]
- then
- echo 1 > /sys/class/net/wlan0/device/rfkill\:rfkill0/state
- echo 1 > /sys/devices/platform/asus-laptop/wlan
- else
- echo 0 > /sys/class/net/wlan0/device/rfkill\:rfkill0/state
- echo 0 > /sys/devices/platform/asus-laptop/wlan
- fi
- exit 0
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.