Magellan Linux

Diff of /alx-src/branches/alxconf-060/functions/config_x11.sh

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

revision 218 by niro, Tue Mar 8 20:29:46 2005 UTC revision 239 by niro, Tue Apr 12 20:46:52 2005 UTC
# Line 1  Line 1 
1    # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_x11.sh,v 1.5 2005-04-12 20:45:55 niro Exp $
2  # configures the x11 server on the host via mysql db settings  # configures the x11 server on the host via mysql db settings
3    
 #delme settings  
 SQL_USER=alx_install  
 SQL_PASS=@lx  
 SQL_HOST=128.20.41.110  
 SQL_DB=alx_web  
 ALX_SERIAL=10  
   
4  get_x11_settings()  get_x11_settings()
5  {  {
6   local x i all DB_X11SETTINGS   local x i all DB_X11SETTINGS
7    
8   # autodetect or not ?   # autodetect or not ?
9   if [ $(mysql_command ${SQL_USER} ${SQL_PASS} ${SQL_HOST} ${SQL_DB} \   if [ $(mysql_command ${SQL_USER} ${SQL_PASS} ${SQL_HOST} ${SQL_DB} \
10   "select monitorid from cfg_graphic where serial='${ALX_SERIAL}") -gt 0 ]   "select monitorid from cfg_graphic where serial='${ALX_SERIAL}'") -gt 0 ]
11   then   then
12   # settings from db   # settings from db
13    
# Line 82  get_x11_settings() Line 76  get_x11_settings()
76   export ALX_MOUSE   export ALX_MOUSE
77  }  }
78    
79  write_x11_config() {  config_x11() {
80    
81   # get our settings from the db   # get our settings from the db
82   get_x11_settings   get_x11_settings
# Line 246  write_x11_config() { Line 240  write_x11_config() {
240   Auto) device=/dev/mouse;;   Auto) device=/dev/mouse;;
241   *) device=/dev/mouse;;   *) device=/dev/mouse;;
242   esac   esac
243     echo "    Option \"Device\"      \"${device}\"" >> ${xfconfig}
244   echo '    Option "Resolution" "1200"' >> ${xfconfig}   echo '    Option "Resolution" "1200"' >> ${xfconfig}
245    
246   [ "${ALX_MOUSE}" = "IMPS/2" ] && echo '    Option "ZAxisMapping" "4 5"' >> ${xfconfig}   [ "${ALX_MOUSE}" = "IMPS/2" ] && echo '    Option "ZAxisMapping" "4 5"' >> ${xfconfig}

Legend:
Removed from v.218  
changed lines
  Added in v.239