Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1974 - (hide annotations) (download) (as text)
Sat May 7 11:03:43 2011 UTC (13 years, 1 month ago) by niro
File MIME type: application/x-sh
File size: 376 byte(s)
-the -alx target names for packages are not used anymore, using real split_packkages
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     }