11 |
#%before: |
#%before: |
12 |
#%after: |
#%after: |
13 |
|
|
14 |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/alxsettings,v 1.25 2005-10-10 21:06:03 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/alxsettings,v 1.27 2005-10-11 12:10:15 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 |
629 |
--icon-width "1" \ |
--icon-width "1" \ |
630 |
--icon-height "1" |
--icon-height "1" |
631 |
|
|
632 |
|
# create a xinitrc |
633 |
|
echo "exec startfluxbox" > ${ALX_UNPRIV_HOME}/.xinitrc |
634 |
|
|
635 |
# set correct permissions |
# set correct permissions |
636 |
chown ${ALX_UNPRIV_USER}:${ALX_UNPRIV_GROUP} ${ALX_UNPRIV_HOME} |
chown ${ALX_UNPRIV_USER}:${ALX_UNPRIV_GROUP} ${ALX_UNPRIV_HOME} |
637 |
chown ${ALX_UNPRIV_USER}:${ALX_UNPRIV_GROUP} ${ALX_UNPRIV_HOME}/.fluxbox |
chown ${ALX_UNPRIV_USER}:${ALX_UNPRIV_GROUP} ${ALX_UNPRIV_HOME}/.fluxbox |
638 |
chmod 0755 ${ALX_UNPRIV_HOME}/.fluxbox |
chmod 0755 ${ALX_UNPRIV_HOME}/.fluxbox |
639 |
chmod 0755 ${ALX_UNPRIV_HOME}/.xtdesktop |
chmod 0755 ${ALX_UNPRIV_HOME}/.xtdesktop |
640 |
chmod 0644 ${ALX_UNPRIV_HOME}/.xtdeskrc |
chmod 0644 ${ALX_UNPRIV_HOME}/.xtdeskrc |
641 |
|
chmod 0644 ${ALX_UNPRIV_HOME}/.xinitrc |
642 |
} |
} |
643 |
|
|
644 |
# start|stop |
# start|stop |
757 |
[ -d ${ALX_UNPRIV_HOME} ] && rm -rf ${ALX_UNPRIV_HOME} |
[ -d ${ALX_UNPRIV_HOME} ] && rm -rf ${ALX_UNPRIV_HOME} |
758 |
|
|
759 |
# remove all ica-sessions |
# remove all ica-sessions |
760 |
find ${ALX_ICA_SESSIONS} -type -f -name '*.ica' | xargs rm |
find ${ALX_ICA_SESSIONS} -type f -name '*.ica' | xargs rm |
761 |
|
|
762 |
# remove all old nics and modules configs |
# remove all old nics and modules configs |
763 |
find /etc/conf.d -type f -name 'net.*' | xargs rm |
find /etc/conf.d -type f -name 'net.*' | xargs rm |