new parameters

This commit is contained in:
2020-06-02 00:25:07 +08:00
parent 0fc8f07c27
commit 4362f0bbc6
+3 -3
View File
@@ -4,8 +4,8 @@ import httplib2
import sys import sys
URL = "http://"+sys.argv[1]+"/cgi-bin/reboot.cgi" URL = "http://"+sys.argv[1]+"/cgi-bin/reboot.cgi"
USER = "root" USER = sys.argv[2]
PASS = "root" PASS = sys.argv[3]
h = httplib2.Http(cache=None, timeout=0.1) h = httplib2.Http(cache=None, timeout=0.1)
h.add_credentials(USER, PASS) h.add_credentials(USER, PASS)
@@ -14,4 +14,4 @@ try:
resp resp
print"OK" print"OK"
except: except:
print"Asic not avalible" print"Asic not avalible"