Annotation of /alx-src/branches/alxconf_20060908/functions/config_versions.sh
Parent Directory | Revision Log
Revision 1582 -
(hide annotations)
(download)
(as text)
Tue Nov 23 12:24:14 2010 UTC (13 years, 10 months ago) by niro
File MIME type: application/x-sh
File size: 388 byte(s)
Tue Nov 23 12:24:14 2010 UTC (13 years, 10 months ago) by niro
File MIME type: application/x-sh
File size: 388 byte(s)
-added config_version and import current version info to database -use new key refresh_rate and deprecate monitorid for x11 graphics -updated xorg.conf and use cvt to calculate modelines with given refresh_rate -enabled dri
1 | niro | 1582 | # $Header$ |
2 | |||
3 | config_version() | ||
4 | { | ||
5 | local alx_os | ||
6 | local alx_utils | ||
7 | |||
8 | alx_os="$(< /etc/mageversion)" | ||
9 | alx_utils="$(magequery -n alxconfig-ng-alx | sed 's:.*\[\ \(.*\)\ \].*:\1:')" | ||
10 | alx_utils="${alx_utils/alxconfig-ng-alx-}" | ||
11 | |||
12 | mysqldo "insert into client_version(serial,os,utils) values('${ALX_SERIAL}','${alx_os}','${alx_utils}') on duplicate key update os='${alx_os}', utils='${alx_utils}'" | ||
13 | } |