From 8ecb8ae5e41c16cb6d05a10d957e8ae53ac11fc5 Mon Sep 17 00:00:00 2001 From: "Joseph R. Nosie" Date: Tue, 23 Feb 2010 06:25:03 +0800 Subject: [PATCH] Fixed problem with setting wmbin when consolefirst --- src/cdm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cdm b/src/cdm index 4b885f7..2376440 100755 --- a/src/cdm +++ b/src/cdm @@ -197,7 +197,11 @@ mainmenu() { elif [[ ${wm} -eq ${halt} ]]; then shutdownmenu else - let wm=wm-countfrom + if $(checkyesno consolefirst); then + let wm=wm-countfrom-1 + else + let wm=wm-countfrom + fi wm_bin="${wmbinlist[${wm}]}" xstart fi