Magellan Linux

Annotation of /alx-src/trunk/alxconfig-ng/functions/config_versions.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2802 - (hide annotations) (download) (as text)
Mon Aug 29 20:20:48 2011 UTC (12 years, 9 months ago) by niro
File MIME type: application/x-sh
File size: 376 byte(s)
-merged branch alxconfig-0_6_0 into trunk
1 niro 1974 # $Id$
2 niro 1582
3     config_version()
4     {
5     local alx_os
6     local alx_utils
7    
8     alx_os="$(< /etc/mageversion)"
9 niro 1974 alx_utils="$(magequery -n alxconfig-ng | sed 's:.*\[\ \(.*\)\ \].*:\1:')"
10     alx_utils="${alx_utils/alxconfig-ng-}"
11 niro 1582
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     }