Magellan Linux

Diff of /alx-src/trunk/alxconfig-ng/functions/config_modules.sh

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

revision 341 by niro, Sun Sep 18 19:18:55 2005 UTC revision 342 by niro, Sun Oct 9 21:30:41 2005 UTC
# Line 1  Line 1 
1  # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_modules.sh,v 1.5 2005-09-18 19:18:55 niro Exp $  # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_modules.sh,v 1.6 2005-10-09 21:28:46 niro Exp $
2  # configures printing on the host via mysql db settings  # configures printing on the host via mysql db settings
3  # Note must be the first configure script which will be startet  # Note must be the first configure script which will be startet
4    
# Line 14  get_modules_settings() Line 14  get_modules_settings()
14   local i count mod_ids settings   local i count mod_ids settings
15    
16   # first get all module names   # first get all module names
17   mod_ids=$(mysql_command ${SQL_USER} ${SQL_PASS} ${SQL_HOST} ${SQL_DB} \   mod_ids=$(mysqldo "select id from cfg_modules where serial='${ALX_SERIAL}'")
  "select id from cfg_modules where serial='${ALX_SERIAL}'")  
18    
19   # set counter equal to numbers of printers   # set counter equal to numbers of printers
20   declare -i count=0   declare -i count=0
21   for i in ${mod_ids}   for i in ${mod_ids}
22   do   do
23   # now get the other settings und put them in arrays   # now get the other settings und put them in arrays
24   ALX_MODULES[${count}]=$(mysql_command ${SQL_USER} ${SQL_PASS} ${SQL_HOST} ${SQL_DB} \   ALX_MODULES[${count}]=$(mysqldo "select module from cfg_modules where id=${i};")
  "select module from cfg_modules where id=${i};")  
   
25   (( count++ ))   (( count++ ))
26   done   done
27    
28   # get network module   # get network module
29   ALX_NETWORK_MODULE=$(mysql_command ${SQL_USER} ${SQL_PASS} ${SQL_HOST} ${SQL_DB} \   ALX_NETWORK_MODULE=$(mysqldo "select module from cfg_network where serial=${ALX_SERIAL};")
  "select module from cfg_network where serial=${ALX_SERIAL};")  
30    
31   ## fixes needed to satisfy some deps   ## fixes needed to satisfy some deps
32   ALX_GFX_MODULE=$(mysql_command ${SQL_USER} ${SQL_PASS} ${SQL_HOST} ${SQL_DB} \   ALX_GFX_MODULE=$(mysqldo "select module from cfg_graphic where serial=${ALX_SERIAL};")
  "select module from cfg_graphic where serial=${ALX_SERIAL};")  
33    
34   # export all settings   # export all settings
35   export ALX_COUNT=${count}   export ALX_COUNT=${count}
# Line 61  config_modules() Line 56  config_modules()
56   local i   local i
57   local modfile   local modfile
58    
59   #first of all get the vars   # first of all get the vars
60   get_modules_settings   get_modules_settings
61    
62   # location of the modules.autoload file   # location of the modules.autoload file

Legend:
Removed from v.341  
changed lines
  Added in v.342