#!/bin/bash
#

# insert into update_level
#   (equip_num, client_file, checksum, file_size, file_path, fileversion)
#   values
#   (0, 'firmware.tgz', 'f4f2bf39211e613e09e7a022c8a4413c', 123, 'firmware-0.1.tgz', '0.1');
# insert into update_level
#   (equip_num, client_file, checksum, file_size, file_path, fileversion)
#   values
#   (0, 'config.tgz', 'ad606d6a24a2dec982bc2993aaaf9160', 125, 'config-0.2.tgz', '0.2');

# busunit_num,equip_num,eth0,imei,imsi,version
echo -e '#9090\t9999\tca:fe:ca:fe:ca:fe\t356136074279052\t310260877138191\tx' | \
  nc localhost 8377

# equip_num,filename=md5sum,...
echo -e '9999\tfirmware.tgz=x\tconfig.tgz=y' | \
  nc localhost 8377

