blob: 30dbaa762ccf53fd1ef910d031fe3b6be5efb2b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/python2
import cgi
import os
#http://192.168.1.200:1337/diskless.py?HOSTNAME=Envynetfe&MAC=00:0C:29:2D:08:82
The_Form = cgi.FieldStorage()
print "name:" + The_Form["HOSTNAME"].value
print "mac:" + The_Form["MAC"].value
cmd="sudo /usr/MythVantage/bin/build_diskless.sh " + The_Form["HOSTNAME"].value + " " + The_Form["MAC"].value
print cmd
os.popen(cmd + " >/dev/null 2>&1 &" )
|