Magellan Linux

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

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

revision 222 by niro, Tue Mar 8 20:49:14 2005 UTC revision 223 by niro, Tue Mar 8 23:03:18 2005 UTC
# Line 1  Line 1 
1  # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_x11.sh,v 1.3 2005-03-08 20:44:32 niro Exp $  # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_x11.sh,v 1.4 2005-03-08 23:03:18 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    
4  get_x11_settings()  get_x11_settings()
# Line 7  get_x11_settings() Line 7  get_x11_settings()
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 76  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 240  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.222  
changed lines
  Added in v.223