Magellan Linux

Diff of /alx-src/branches/alxconf-060/init.d/alxsettings

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

revision 227 by niro, Wed Mar 9 00:04:23 2005 UTC revision 229 by niro, Wed Mar 9 00:13:01 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.3 2005-03-09 00:04:23 niro Exp $  # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/alxsettings,v 1.4 2005-03-09 00:13:01 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 257  check_is_configured() { Line 257  check_is_configured() {
257  import_settings_to_db() {  import_settings_to_db() {
258   #note: networking is always 'dhcp' if hw was autodetected   #note: networking is always 'dhcp' if hw was autodetected
259   #note: default_domain/hostname is set in config.rc   #note: default_domain/hostname is set in config.rc
260    
261   #to be safe, we do some sanity checks   #to be safe, we do some sanity checks
262   [ -z "${ALX_DEFAULT_DOMAIN}" ] && ALX_DEFAULT_DOMAIN=localdomain   [ -z "${ALX_DEFAULT_DOMAIN}" ] && ALX_DEFAULT_DOMAIN=localdomain
263   [ -z "${ALX_DEFAULT_HOSTNAME}" ] && ALX_DEFAULT_HOSTNAME=magellan-alx   [ -z "${ALX_DEFAULT_HOSTNAME}" ] && ALX_DEFAULT_HOSTNAME=magellan-alx
264    
265   #vars used by hwdetect   #vars used by hwdetect
266   local NETCARD_FULLNAME NETCARD_DRIVER MOUSE_FULLNAME MOUSE_DEVICE SOUND_FULLNAME   local NETCARD_FULLNAME NETCARD_DRIVER MOUSE_FULLNAME MOUSE_DEVICE SOUND_FULLNAME
267   local SOUND_DRIVER XSERVER XMODULE XDESC FLOPPY_FULLNAME FLOPPY_DEVICE FLOPPY_DRIVER   local SOUND_DRIVER XSERVER XMODULE XDESC FLOPPY_FULLNAME FLOPPY_DEVICE FLOPPY_DRIVER
268   local MOUSETYPE XMOUSETYPE FULLNAME DEVICE   local MOUSETYPE XMOUSETYPE FULLNAME DEVICE
269    
270   #get setting from hwdetect   #get setting from hwdetect
271   source /etc/sysconfig/hwsetup/knoppix   source /etc/sysconfig/hwsetup/knoppix
272   source /etc/sysconfig/hwsetup/mouse   source /etc/sysconfig/hwsetup/mouse
273    
274   echo   echo
275   echo -e ${COLMAGENTA}"Importing detected settings to database"${COLDEFAULT}   echo -e ${COLMAGENTA}"Importing detected settings to database"${COLDEFAULT}
276    
277   #network   #network
278   echo -e "      Network settings ..."   echo -e "      Network settings ..."
279   mysql_command ${SQL_USER} ${SQL_PASS} ${SQL_HOST} ${SQL_DB} \   mysql_command ${SQL_USER} ${SQL_PASS} ${SQL_HOST} ${SQL_DB} \
# Line 292  import_settings_to_db() { Line 292  import_settings_to_db() {
292   'dhcp'   'dhcp'
293   );"   );"
294   evaluate_retval   evaluate_retval
295    
296   #xserver   #xserver
297   echo -e "      Graphic settings ..."   echo -e "      Graphic settings ..."
298   #xserver general   #xserver general
# Line 301  import_settings_to_db() { Line 301  import_settings_to_db() {
301   serial,   serial,
302   module,   module,
303   resolution,   resolution,
304   depth   depth,
305     monitorid
306   )   )
307   values(   values(
308   '${ALX_SERIAL}',   '${ALX_SERIAL}',
309   '${XMODULE}',   '${XMODULE}',
310   '1024x768',   '1024x768',
311   '16'   '16',
312   );";   '0'
  #xserver monitor  
   mysql_command ${SQL_USER} ${SQL_PASS} ${SQL_HOST} ${SQL_DB} \  
  "insert into cfg_monitor(  
  serial,  
  vendor,  
  model,  
  hsync,  
  vrefresh  
  )  
  values(  
  '${ALX_SERIAL}',  
  'Aamazing',  
  'CM-1528-FS',  
  '28-64',  
  '47-104'  
313   );";   );";
314    
315   # input   # input
316    mysql_command ${SQL_USER} ${SQL_PASS} ${SQL_HOST} ${SQL_DB} \    mysql_command ${SQL_USER} ${SQL_PASS} ${SQL_HOST} ${SQL_DB} \
317   "insert into cfg_input(serial,mouse) values('${ALX_SERIAL}','${XMOUSETYPE}');";)   "insert into cfg_input(serial,mouse) values('${ALX_SERIAL}','${XMOUSETYPE}');";)

Legend:
Removed from v.227  
changed lines
  Added in v.229