source: lliurex-rpi-packages/trunk/fuentes/ldm/ltsp/xinitrc.d/I00-cluster @ 2328

Last change on this file since 2328 was 2328, checked in by kbut, 3 years ago

add new package

File size: 456 bytes
Line 
1# sourced
2
3if [ -f /etc/ltsp/getltscfg-cluster.conf ]; then
4    if ( boolean_is_true "$LDM_AUTOLOGIN" || boolean_is_true "$LDM_GUESTLOGIN" ) && [ -z "$LDM_USERNAME" ]; then
5        login=$(echo "username" | nc $nc_q_param $LDM_SERVER 8001 | awk '{print $2}')
6        export LDM_USERNAME=$login
7    fi
8    if ! boolean_is_true "$CLUSTER_CONFIGURED" && [ -n "$(which ltsp-cluster-info)" ]; then
9        export HOME=/root/
10        ltsp-cluster-info
11    fi
12fi
Note: See TracBrowser for help on using the repository browser.