Hi Derek, You can just grep /usr/share/axis-release/variables for PART=
This is a sample of C code...
// Get my HW information
if ( hw ) {
fp = popen("grep 'PART=' /usr/share/axis-release/variables | cut
-d'\"' -f2", "r");
if ( fp ) {
fgets(hw, hw_len, fp);
pclose(fp);
}
else {
hw = NULL;
syslog(LOG_ERR, "Unable to get HW information");
}
}
Regards,
Lloyd.
--
IT Department
Pharma Nord (UK) Ltd
Telford Court
Morpeth
Northumberland
NE61 2DB
Tel:. +44 1670 519 989
Fax:. +44 1670 534 903
