summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/netcfg-menu2
-rwxr-xr-xscripts/netcfg-wpa_actiond2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/netcfg-menu b/scripts/netcfg-menu
index f7c9019..a62838a 100755
--- a/scripts/netcfg-menu
+++ b/scripts/netcfg-menu
@@ -53,7 +53,7 @@ case $ret in
(( ret == 0 )) && echo "$DEFAULT" > "$STATE_DIR/menu"
;;
0) # User selection
- profile_up "$(cat "$ANSWER")"
+ profile_up "$(< "$ANSWER")"
ret=$?
(( ret == 0 )) && mv "$ANSWER" "$STATE_DIR/menu"
;;
diff --git a/scripts/netcfg-wpa_actiond b/scripts/netcfg-wpa_actiond
index c8a2867..f276ab2 100755
--- a/scripts/netcfg-wpa_actiond
+++ b/scripts/netcfg-wpa_actiond
@@ -20,7 +20,7 @@ case $1 in
[[ -f "$IFACE_DIR/$interface" ]] && source "$IFACE_DIR/$interface"
netcfg -i "$interface"
stop_wpa "$interface"
- kill $(cat "/run/wpa_actiond_${2}.pid")
+ kill $(< "/run/wpa_actiond_${2}.pid")
# only try to disable software rfkill switches (FS#25514)
if [[ "$RFKILL" == "soft" ]]; then
set_rf_state "$interface" disabled $RFKILL_NAME || exit $?