|
|
@ -70,22 +70,22 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
# Default options.
|
|
|
|
# Default options.
|
|
|
|
|
|
|
|
|
|
|
|
binlist=${binlist:-()}
|
|
|
|
[[ -z "${binlist[*]}" ]] && binlist=()
|
|
|
|
namelist=${namelist:-()}
|
|
|
|
[[ -z "${namelist[*]}" ]] && namelist=()
|
|
|
|
flaglist=${flaglist:-()}
|
|
|
|
[[ -z "${flaglist[*]}" ]] && flaglist=()
|
|
|
|
dialogrc=${dialogrc:-}
|
|
|
|
dialogrc=${dialogrc:-}
|
|
|
|
countfrom=${countfrom:-0}
|
|
|
|
countfrom=${countfrom:-0}
|
|
|
|
display=${display:-0}
|
|
|
|
display=${display:-0}
|
|
|
|
xtty=${xtty:-7}
|
|
|
|
xtty=${xtty:-7}
|
|
|
|
locktty=${locktty:-no}
|
|
|
|
locktty=${locktty:-no}
|
|
|
|
serverargs=${serverargs:-'-nolisten tcp'}
|
|
|
|
|
|
|
|
consolekit=${consolekit:-yes}
|
|
|
|
consolekit=${consolekit:-yes}
|
|
|
|
cktimeout=${cktimeout:-30}
|
|
|
|
cktimeout=${cktimeout:-30}
|
|
|
|
|
|
|
|
serverargs=${serverargs:-'-nolisten tcp'}
|
|
|
|
|
|
|
|
|
|
|
|
# Offer all available sessions in /etc/X11/Sessions,
|
|
|
|
# Offer all available sessions in /etc/X11/Sessions,
|
|
|
|
# if binlist if not explicitly set in cdmrc.
|
|
|
|
# if binlist if not explicitly set in cdmrc.
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "$binlist" == "()" ]]; then
|
|
|
|
if [[ "${#binlist[@]}" == 0 ]]; then
|
|
|
|
binlist=($(find /etc/X11/Sessions -maxdepth 1 -type f))
|
|
|
|
binlist=($(find /etc/X11/Sessions -maxdepth 1 -type f))
|
|
|
|
for ((i=0; i<${#binlist[@]}; i++)); do
|
|
|
|
for ((i=0; i<${#binlist[@]}; i++)); do
|
|
|
|
declare flaglist[$i]="X"
|
|
|
|
declare flaglist[$i]="X"
|
|
|
|