Magellan Linux

Annotation of /alx-src/branches/alxconf-060/functions/config_versions.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1800 - (hide annotations) (download) (as text)
Thu Apr 14 19:29:35 2011 UTC (13 years, 2 months ago) by niro
File MIME type: application/x-sh
File size: 388 byte(s)
created 0.6.x branch
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     }