Magellan Linux

Diff of /alx-src/trunk/alxconfig-ng/init.d/alxsettings

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 252 by niro, Thu Apr 14 19:12:21 2005 UTC revision 275 by niro, Sun Jul 10 17:55:03 2005 UTC
# Line 11  Line 11 
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.14 2005-07-10 17:55:03 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
# Line 28  source $rc_functions Line 28  source $rc_functions
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
# Line 52  unset ALX_SERIAL ALX_STATE Line 53  unset ALX_SERIAL ALX_STATE
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    
# Line 68  update_system_settings(){ Line 73  update_system_settings(){
73   config_auth   config_auth
74    
75   # exchange ssh rsa keys   # exchange ssh rsa keys
76   config_ssh_auth   HOME=/root config_ssh_auth
77  }  }
78    
79  get_system_serial(){  get_system_serial(){
# Line 279  import_settings_to_db() { Line 284  import_settings_to_db() {
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} \
# Line 314  import_settings_local(){ Line 325  import_settings_local(){
325   #set system state to 'already configured'   #set system state to 'already configured'
326   touch /etc/alxconfig-ng/state/configured   touch /etc/alxconfig-ng/state/configured
327    
328     # create a fresh fluxbox directory
329     [ -d ${ALX_UNPRIV_HOME}/.fluxbox ] && rm -rf ${ALX_UNPRIV_HOME}/.fluxbox
330     install -d ${ALX_UNPRIV_HOME}/.fluxbox
331    
332     # now generate fluxbox config files
333    
334     # fluxbox main config
335     cat ${ALX_SKELETONS}/fluxbox/init \
336     > ${ALX_UNPRIV_HOME}/.fluxbox/init
337    
338     # fluxbox menu header
339     cat ${ALX_SKELETONS}/fluxbox/menu.header \
340     > ${ALX_UNPRIV_HOME}/.fluxbox/menu
341    
342     # add a newline (maybe there is no crlf in the header)
343     echo >> ${ALX_UNPRIV_HOME}/.fluxbox/menu
344    
345     # fluxbox menu footer
346     cat ${ALX_SKELETONS}/fluxbox/menu.footer \
347     >> ${ALX_UNPRIV_HOME}/.fluxbox/menu
348    
349     # add a newline (maybe there is no crlf in the footer)
350     echo >> ${ALX_UNPRIV_HOME}/.fluxbox/menu
351    
352   # default passwords are bad   # default passwords are bad
353   #usermod -p $(perl -e "printf(crypt('foobar','AD'))") root   #usermod -p $(perl -e "printf(crypt('foobar','AD'))") root
354   #usermod -p $(perl -e "printf(crypt('foobar','AD'))") ${ALX_UNPRIV_USER}   #usermod -p $(perl -e "printf(crypt('foobar','AD'))") ${ALX_UNPRIV_USER}

Legend:
Removed from v.252  
changed lines
  Added in v.275