summaryrefslogtreecommitdiffstats
path: root/src/rfkill
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2012-03-01 01:33:12 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2012-03-01 01:35:58 +0100
commiteed3f590c9db7cd9cd4d5fb4722fc7257a278ea6 (patch)
treed34406a8af61dccbb9655b899da30d04ce61a623 /src/rfkill
parent8d1c5e8ec6b637015e84bbb154ece9065c59f1c5 (diff)
downloadnetctl-eed3f590c9db7cd9cd4d5fb4722fc7257a278ea6.tar.gz
netctl-eed3f590c9db7cd9cd4d5fb4722fc7257a278ea6.tar.xz
Code quality upgrade
This is what you get when Dave Reisner points you at some bash anti-patterns. Also in this commit: - updated documentation - bugfix revision of the IPv6 SLAAC address/route bug
Diffstat (limited to 'src/rfkill')
-rw-r--r--src/rfkill2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rfkill b/src/rfkill
index d61703d..4fbc34d 100644
--- a/src/rfkill
+++ b/src/rfkill
@@ -42,7 +42,7 @@ get_rf_state() {
local INTERFACE="$1" PROFILE="$2" path state
path=$(get_rf_path "$INTERFACE" "$RFKILL_NAME") || return 1
- state=$(cat "$path/state")
+ read state < "$path/state"
case "$state" in
0|2)