This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
print("*********************************************************************") | |
print("Cisco IOU License Generator - Kal 2011, python port of 2006 C version") | |
print("Modified to work with python3 by c_d 2014") | |
import os | |
import socket | |
import hashlib | |
import struct | |
# get the host id and host name to calculate the hostkey |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
socket = "/home/ubuntu/demo/liq.sock" | |
logfile = "/home/ubuntu/demo/liq.log" | |
set("log.level", 4) | |
set("log.file.path", logfile) | |
# Print log messages to the console, | |
# can also be done by passing the -v option to liquidsoap. | |
set("log.stdout", log_stdout) | |
# Use the telnet server for requests |