From 9c0761da351ea4d7b519855183b0f8956feb1c05 Mon Sep 17 00:00:00 2001 From: Ghost1227 Date: Sun, 3 Jan 2010 22:28:22 -0600 Subject: [PATCH] Fixed a few typos. --- src/cdm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/cdm b/src/cdm index 1b6d201..e359667 100755 --- a/src/cdm +++ b/src/cdm @@ -42,7 +42,7 @@ if [[ -f /etc/cdmrc ]]; then source /etc/cdmrc count=0 while [[ ${count} -lt ${#userconfig[@]} ]]; do - if [[ "$USER" == "${#userconfig[${count}]}" ]]; then + if [[ "$USER" == "${userconfig[${count}]}" ]]; then ${userconfig[${count}]} fi let count=count+1 @@ -141,7 +141,7 @@ mainmenu() { # Check if console access is allowed if $(checkyesno allowconsole); then - if $(checkyesno allowshutdown); then + if ! $(checkyesno allowshutdown); then let halt=99 fi let console=${#wmdisplist[@]}+countfrom @@ -150,7 +150,7 @@ mainmenu() { # Check if shutdown access is allowed if $(checkyesno allowshutdown); then - if $(checkyesno allowconsole); then + if ! $(checkyesno allowconsole); then let halt=${#wmdisplist[@]} else let halt=${#wmdisplist[@]}+1 @@ -235,15 +235,15 @@ xstart() { if $(checkyesno loginshell); then if [[ ${wm_bin} == "gnome-session" ]]; then - exec ck-launch-session bash --login -c "startx $wm_bin -- :${serverargs} &> /dev/null" & + exec ck-launch-session bash --login -c "startx $wm_bin -- ${serverargs} &> /dev/null" & else - exec bash --login -c "startx $wm_bin -- :${serverargs} &> /dev/null" & + exec bash --login -c "startx $wm_bin -- ${serverargs} &> /dev/null" & fi else if [[ ${wm_bin} == "gnome-session" ]]; then - exec ck-launch-session startx $wm_bin -- :${serverargs} &> /dev/null & + exec ck-launch-session startx $wm_bin -- ${serverargs} &> /dev/null & else - exec startx $wm_bin -- :${serverargs} &> /dev/null & + exec startx $wm_bin -- ${serverargs} &> /dev/null & fi fi }