From d2656b7dab538dcb7b5e49c6ac4aa5833a883a8c Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Thu, 14 Jun 2012 17:09:42 +0200 Subject: Less forking Suggestion by Dave Reisner. --- scripts/netcfg-menu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/netcfg-menu') 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=$? -- cgit v1.2.3-24-g4f1b