11 |
#%before: |
#%before: |
12 |
#%after: |
#%after: |
13 |
|
|
14 |
# $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/init.d/alxsettings,v 1.18 2008-06-10 13:14:06 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/init.d/alxsettings,v 1.22 2008-06-17 19:08:33 niro Exp $ |
15 |
|
|
16 |
# checks first if the client was already configured and if it has an valid serial |
# checks first if the client was already configured and if it has an valid serial |
17 |
# if not it runs the autoconfiguration script |
# if not it runs the autoconfiguration script |
21 |
# if no changes are at server side they will be kept, if yes the get updated. |
# if no changes are at server side they will be kept, if yes the get updated. |
22 |
# the server settings has higher priority. |
# the server settings has higher priority. |
23 |
|
|
24 |
source /etc/sysconfig/rc |
source /etc/conf.d/rc |
25 |
source $rc_functions |
source ${rc_functions} |
26 |
|
|
27 |
# mysql settings |
# mysql settings |
28 |
source /etc/alxconfig-ng/config.rc |
source /etc/alxconfig-ng/config.rc |
509 |
|
|
510 |
# setup some standart icons (sysinfo.lnk) |
# setup some standart icons (sysinfo.lnk) |
511 |
# basic config |
# basic config |
512 |
cat ${ALX_SKELETONS}/xtdesktop/xtdeskrc > ${ALX_UNPRIV_HOME}/.xtdeskrc |
cat ${ALX_SKELETONS}/xtdesktop/xtdeskrc-${ALX_DEFAULT_THEME} > ${ALX_UNPRIV_HOME}/.xtdeskrc |
513 |
|
|
514 |
# clean desktop icon location |
# clean desktop icon location |
515 |
[ -d ${ALX_UNPRIV_HOME}/.xtdesktop ] && rm -rf ${ALX_UNPRIV_HOME}/.xtdesktop |
[ -d ${ALX_UNPRIV_HOME}/.xtdesktop ] && rm -rf ${ALX_UNPRIV_HOME}/.xtdesktop |
541 |
--icon-width "1" \ |
--icon-width "1" \ |
542 |
--icon-height "1" |
--icon-height "1" |
543 |
|
|
544 |
# create a xinitrc |
# check for Xorg or kdrive (use Xvesa) |
545 |
echo "exec startfluxbox" > ${ALX_UNPRIV_HOME}/.xinitrc |
if [[ -x /usr/bin/Xorg ]] |
546 |
|
then |
547 |
|
ln -snf Xorg /usr/bin/X |
548 |
|
ln -snf startx-xorg /usr/bin/startx |
549 |
|
|
550 |
|
elif [[ -x /usr/bin/Xvesa ]] |
551 |
|
then |
552 |
|
ln -snf Xvesa /usr/bin/X |
553 |
|
ln -snf startx-kdrive /usr/bin/startx |
554 |
|
fi |
555 |
|
|
556 |
# set correct permissions |
# set correct permissions |
557 |
chown ${ALX_UNPRIV_USER}:${ALX_UNPRIV_GROUP} ${ALX_UNPRIV_HOME} |
chown ${ALX_UNPRIV_USER}:${ALX_UNPRIV_GROUP} ${ALX_UNPRIV_HOME} |