11 |
#%before: |
#%before: |
12 |
#%after: |
#%after: |
13 |
|
|
14 |
# $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/init.d/alxsettings,v 1.15 2008-06-08 10:56:39 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/init.d/alxsettings,v 1.17 2008-06-10 13:08:02 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 |
374 |
echo " Screensaver settings ..." |
echo " Screensaver settings ..." |
375 |
mysqldo "insert into cfg_screensaver(serial,screensaver) values('${ALX_SERIAL}','')" |
mysqldo "insert into cfg_screensaver(serial,screensaver) values('${ALX_SERIAL}','')" |
376 |
|
|
377 |
|
# theme |
378 |
|
echo " Theme settings ..." |
379 |
|
mysqldo "insert into cfg_theme(serial,theme) values('${ALX_SERIAL}','${ALX_DEFAULT_THEME}')" |
380 |
|
|
381 |
evaluate_retval |
evaluate_retval |
382 |
} |
} |
383 |
|
|
481 |
|
|
482 |
# now generate fluxbox config files |
# now generate fluxbox config files |
483 |
|
|
484 |
|
# fluxbox theme |
485 |
|
[[ ! -d /usr/share/fluxbox/styles ]] && install -d /usr/share/fluxbox/styles |
486 |
|
cat ${ALX_SKELETONS}/fluxbox/themes/${ALX_DEFAULT_THEME} > /usr/share/fluxbox/styles/default |
487 |
|
|
488 |
# fluxbox main config |
# fluxbox main config |
489 |
cat ${ALX_SKELETONS}/fluxbox/init > ${ALX_UNPRIV_HOME}/.fluxbox/init |
cat ${ALX_SKELETONS}/fluxbox/init > ${ALX_UNPRIV_HOME}/.fluxbox/init |
490 |
|
|
605 |
rm -f /etc/alxconfig-ng/serial |
rm -f /etc/alxconfig-ng/serial |
606 |
rm -rf /etc/alxconfig-ng/state |
rm -rf /etc/alxconfig-ng/state |
607 |
|
|
608 |
# clear all printers & net-shares |
# clear all printers |
609 |
:> /etc/cups/printers.conf |
:> /etc/printcap |
|
:> /etc/samba/smb.conf |
|
|
|
|
|
# remove inetd, cups & smb from init |
|
|
rc-config del inetd &> /dev/null |
|
|
rc-config del cups &> /dev/null |
|
|
rc-config del samba &> /dev/null |
|
610 |
|
|
611 |
# remove all user settings |
# remove all user settings |
612 |
[ -d ${ALX_UNPRIV_HOME} ] && rm -rf ${ALX_UNPRIV_HOME} |
[ -d ${ALX_UNPRIV_HOME} ] && rm -rf ${ALX_UNPRIV_HOME} |