createlicense.sh 695 B

123456789101112131415161718
  1. #!/bin/sh
  2. #set license
  3. licensefile='/app/broadcast-system/data/zycoo_init/sql/.limited'
  4. cid=`cat /sys/block/mmcblk1/device/cid`e845116521d590069f285ddde46ee2cf
  5. openssl rand -hex 32 > $licensefile
  6. openssl rand -hex 32 >> $licensefile
  7. openssl rand -hex 32 >> $licensefile
  8. openssl rand -hex 32 >> $licensefile
  9. openssl rand -hex 32 >> $licensefile
  10. openssl rand -hex 32 >> $licensefile
  11. openssl rand -hex 32 >> $licensefile
  12. echo `openssl rand -hex 5``echo -n $cid |md5sum|awk '{print $1}'``openssl rand -hex 11` >> $licensefile
  13. openssl rand -hex 32 >> $licensefile
  14. openssl rand -hex 32 >> $licensefile
  15. openssl rand -hex 32 >> $licensefile
  16. openssl rand -hex 32 >> $licensefile
  17. rm -f /createlicense.sh