summaryrefslogtreecommitdiffstats
path: root/scripts/netcfg-menu
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2012-06-14 17:09:42 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2012-06-14 17:09:42 +0200
commitd2656b7dab538dcb7b5e49c6ac4aa5833a883a8c (patch)
tree6c2b3a293662547f740635e62d3d5c82bfbec386 /scripts/netcfg-menu
parentfc98a15f18bc19b7323ae7fdcd23d5338fcf2742 (diff)
downloadnetctl-d2656b7dab538dcb7b5e49c6ac4aa5833a883a8c.tar.gz
netctl-d2656b7dab538dcb7b5e49c6ac4aa5833a883a8c.tar.xz
Less forking
Suggestion by Dave Reisner.
Diffstat (limited to 'scripts/netcfg-menu')
-rwxr-xr-xscripts/netcfg-menu2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/netcfg-menu b/scripts/netcfg-menu
index d0db762..1ca5e32 100755
--- a/scripts/netcfg-menu
+++ b/scripts/netcfg-menu
@@ -50,7 +50,7 @@ case $ret in
255) # timeout - use default
PROFILE=$DEFAULT;;&
0) # User selection
- PROFILE=$(< "$ANSWER");;&
+ read PROFILE < "$ANSWER";;&
255|0)
profile_up "$PROFILE"
ret=$?