1 |
# $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_sessions.sh,v 1.2 2008-06-04 19:26:00 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/functions/config_sessions.sh,v 1.3 2008-06-07 17:10:04 niro Exp $ |
2 |
# configures ica-sessions on the host via mysql db settings |
# configures ica-sessions on the host via mysql db settings |
3 |
|
|
4 |
get_sessions_settings() |
get_sessions_settings() |
423 |
|
|
424 |
osversion="$(< /etc/mageversion)" |
osversion="$(< /etc/mageversion)" |
425 |
hostname=$(mysqldo "select hostname from cfg_network where serial='${ALX_SERIAL}'") |
hostname=$(mysqldo "select hostname from cfg_network where serial='${ALX_SERIAL}'") |
426 |
sysinfo="Hostname: ${hostname} Serial: #${ALX_SERIAL} OS: alx-${osversion} Kernel: $(uname -r)" |
sysinfo="Hostname: ${hostname} Serial: #${ALX_SERIAL} OS: tinyALX-${osversion} Kernel: $(uname -r)" |
427 |
|
|
428 |
# now get the right position: |
# now get the right position: |
429 |
# restore orig values of xres |
# restore orig values of xres |
508 |
|
|
509 |
# now fix it with proper messages :P |
# now fix it with proper messages :P |
510 |
local ver="$(< /etc/mageversion)" |
local ver="$(< /etc/mageversion)" |
511 |
sed -i "s:@CHANGEME@:alx-${ver} #${ALX_SERIAL}:g" \ |
sed -i "s:@CHANGEME@:tinyALX-${ver} #${ALX_SERIAL}:g" \ |
512 |
${ALX_UNPRIV_HOME}/.fluxbox/menu |
${ALX_UNPRIV_HOME}/.fluxbox/menu |
513 |
|
|
514 |
# add a newline (maybe there is no crlf in the header) |
# add a newline (maybe there is no crlf in the header) |