17 |
--add|--del|--print) method="${1//--}" ;; |
--add|--del|--print) method="${1//--}" ;; |
18 |
--name) shift; name="$1" ;; |
--name) shift; name="$1" ;; |
19 |
--server) shift; server="$1" ;; |
--server) shift; server="$1" ;; |
|
--shell) shift; shell="$1" ;; |
|
20 |
--mode) shift; mode="$1" ;; |
--mode) shift; mode="$1" ;; |
21 |
--user) shift; user="$1" ;; |
--user) shift; user="$1" ;; |
22 |
--domain) shift; domain="$1" ;; |
--domain) shift; domain="$1" ;; |
23 |
--password) shift; password="$1" ;; |
--password) shift; password="$1" ;; |
24 |
--store) shift; store="$1" ;; |
--shell) shift; shell="$1" ;; |
25 |
--autostart) shift; autostart="$1" ;; |
--autostart) shift; autostart="$1" ;; |
26 |
esac |
esac |
27 |
shift |
shift |
30 |
cmdline="" |
cmdline="" |
31 |
[[ -n ${method} ]] || die "No method given" |
[[ -n ${method} ]] || die "No method given" |
32 |
[[ -n ${autostart} ]] || autostart=0 |
[[ -n ${autostart} ]] || autostart=0 |
33 |
|
[[ ${shell} = NULL ]] && shell="" |
34 |
|
[[ ${user} = NULL ]] && user="" |
35 |
|
[[ ${domain} = NULL ]] && domain="" |
36 |
|
[[ ${password} = NULL ]] && password="" |
37 |
|
|
38 |
[[ -d ${RDESKTOP_SESSIONDIR} ]] || install -d ${RDESKTOP_SESSIONDIR} |
[[ -d ${RDESKTOP_SESSIONDIR} ]] || install -d ${RDESKTOP_SESSIONDIR} |
39 |
[[ -d ${RDESKTOP_CONFIGDIR} ]] || install -d ${RDESKTOP_CONFIGDIR} |
[[ -d ${RDESKTOP_CONFIGDIR} ]] || install -d ${RDESKTOP_CONFIGDIR} |