|
|
@@ -136,16 +136,16 @@ sub CheckinServerReply
|
|
|
my $response = '';
|
|
|
|
|
|
my @client_values = split(/[\t]/, $client_query, -1); #the -1 keeps split from trimming trailing blank fields
|
|
|
- #0. viper_num (0 for Phase II)
|
|
|
+ #0. busunit_num (0 for Phase II)
|
|
|
#1. equip_num (usually bogus for Phase I)
|
|
|
- #2. eth0_mac (Effectively a serial number of the SBC (be it Viper, Titan, or some Atom based system)
|
|
|
+ #2. eth0_mac (Effectively a serial number of the SBC
|
|
|
#3. cell_imei (Effectively a serial number of the Cell Modem)
|
|
|
#4. cell_imsi (Effectively a serial number of the SIM card inserted in the modem)
|
|
|
#5. version_strings (a concatenation of package versions)
|
|
|
|
|
|
$client_values[0] =~ s/^[^0-9]*//; #Strip the leading '#' (and anything else non-numeric) from our string
|
|
|
|
|
|
- $sth = $dbh->prepare('INSERT INTO bus_checkin_log (viper_num, equip_num, eth0_mac, cell_imei, cell_imsi, version_data) VALUES (?, ?, ?, ?, ?, ?)');
|
|
|
+ $sth = $dbh->prepare('INSERT INTO bus_checkin_log (busunit_num, equip_num, eth0_mac, cell_imei, cell_imsi, version_data) VALUES (?, ?, ?, ?, ?, ?)');
|
|
|
|
|
|
# We explicitly chop this down to the 6 fields we want to insert, rather than passing @client_values as a parameter so
|
|
|
#that if some foolish version string goes and contains a tab (this should never happen!) it will be trunctated instead
|