Skip to content
Browse files

Fixed a few typos.

  • Loading branch information...
1 parent 3274ddd commit 9c0761da351ea4d7b519855183b0f8956feb1c05 Ghost1227 committed Jan 3, 2010
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/cdm
View
14 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
}

0 comments on commit 9c0761d

Please sign in to comment.
Something went wrong with that request. Please try again.