diff options
author | Philipp Zabel <philipp.zabel@gmail.com> | 2006-03-09 14:36:03 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-03-09 14:36:03 +0000 |
commit | 3e235fe50eac2876a3ca837c9168975e52240609 (patch) | |
tree | 8fa81a1ced62fc179309224e88fb098d3503c5dc | |
parent | 0db04b9285c8c05f307bd5dbb0a77be43385bc7d (diff) |
login-manager: simplify get_valid_lms, fix for kbdless devices with only one dm installed
-rw-r--r-- | packages/login-manager/files/login-manager | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/packages/login-manager/files/login-manager b/packages/login-manager/files/login-manager index 7b62dfa76b..deadaa61c2 100644 --- a/packages/login-manager/files/login-manager +++ b/packages/login-manager/files/login-manager @@ -46,32 +46,15 @@ get_valid_lms() { if echo "$LM_FILES" | grep -iq "$lm" then test -x "$LM_PATH/$lm" && VALID_LMS="$VALID_LMS $lm" || echo -e "\t* Discarding [$lm]: Not executable" - fi done - - if test "`echo "$VALID_LMS" | wc -w | tr -d " "`" -gt 1 - then - SELECTED_LM="$LM_PATH/`echo "$VALID_LMS" | awk '{print $1}'`" - else - SELECTED_LM="$VALID_LMS" - fi - - else for lm in $LM_FILES do test -x "$LM_PATH/$lm" && VALID_LMS="$VALID_LMS $lm" || echo -e "\t* Discarding [$lm]: Not executable" done - - if test "`echo "$VALID_LMS" | wc -w | tr -d " "`" -gt 1 - then - SELECTED_LM="$LM_PATH/`echo "$VALID_LMS" | awk '{print $1}'`" - else - # Use awk here, too to filter a backspace in VALID_LMS - SELECTED_LM="$LM_PATH/`echo "$VALID_LMS" | awk '{print $1}'`" - fi fi + SELECTED_LM="$LM_PATH/`echo "$VALID_LMS" | awk '{print $1}'`" } do_start(){ |