11 |
#%before: |
#%before: |
12 |
#%after: |
#%after: |
13 |
|
|
14 |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/alxsettings,v 1.9 2005-04-14 19:12:21 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/alxsettings,v 1.12 2005-04-18 22:59:49 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 |
28 |
source /etc/alxconfig-ng/config.rc |
source /etc/alxconfig-ng/config.rc |
29 |
source /usr/lib/alxconfig-ng/functions/mysqlfunctions |
source /usr/lib/alxconfig-ng/functions/mysqlfunctions |
30 |
source /usr/lib/alxconfig-ng/functions/serial_functions |
source /usr/lib/alxconfig-ng/functions/serial_functions |
31 |
|
source /usr/lib/alxconfig-ng/functions/config_modules |
32 |
source /usr/lib/alxconfig-ng/functions/config_network |
source /usr/lib/alxconfig-ng/functions/config_network |
33 |
source /usr/lib/alxconfig-ng/functions/config_printers |
source /usr/lib/alxconfig-ng/functions/config_printers |
34 |
source /usr/lib/alxconfig-ng/functions/config_sessions |
source /usr/lib/alxconfig-ng/functions/config_sessions |
53 |
update_system_settings(){ |
update_system_settings(){ |
54 |
echo -e ${COLMAGENTA}"Checking system setup ..."${COLDEFAULT} |
echo -e ${COLMAGENTA}"Checking system setup ..."${COLDEFAULT} |
55 |
|
|
56 |
|
# get the modules settings |
57 |
|
# ! is the first thing that must be configured ! |
58 |
|
config_modules |
59 |
|
|
60 |
# imports network settings from db |
# imports network settings from db |
61 |
config_networking |
config_networking |
62 |
|
|
284 |
);" |
);" |
285 |
evaluate_retval |
evaluate_retval |
286 |
|
|
287 |
|
# exchange ssh rsa keys - the first boot needs this ! |
288 |
|
# or no reboot will work via the webadmin |
289 |
|
echo -e " SSH authentifcation settings ..." |
290 |
|
HOME=/root config_ssh_auth |
291 |
|
evaluate_retval |
292 |
|
|
293 |
# input |
# input |
294 |
echo -e " Autostart settings ..." |
echo -e " Autostart settings ..." |
295 |
mysql_command ${SQL_USER} ${SQL_PASS} ${SQL_HOST} ${SQL_DB} \ |
mysql_command ${SQL_USER} ${SQL_PASS} ${SQL_HOST} ${SQL_DB} \ |