diff options
author | Chris Severance | 2016-12-21 06:03:55 -0500 |
---|---|---|
committer | Chris Severance | 2016-12-21 06:03:55 -0500 |
commit | b100308d2ffecb335f3813ef399f240f28db71cf (patch) | |
tree | 05a9fc32bcd29b1c14da10d504daa63468510e6a /dmupdate.py.usage.patch | |
download | aur-b100308d2ffecb335f3813ef399f240f28db71cf.tar.gz |
Initial Import
Diffstat (limited to 'dmupdate.py.usage.patch')
-rw-r--r-- | dmupdate.py.usage.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/dmupdate.py.usage.patch b/dmupdate.py.usage.patch new file mode 100644 index 000000000000..05cc640a4826 --- /dev/null +++ b/dmupdate.py.usage.patch @@ -0,0 +1,36 @@ +*** dmupdate.py.orig Tue Dec 20 17:11:29 2016 +--- dmupdate.py Tue Dec 20 17:15:37 2016 +*************** +*** 257,268 **** + del args[0] + + if e is None: + e = b + +! host = args[0] +! filename = args[1] + + if not zipfile.is_zipfile(filename): + binfile = open(filename,"rb") + else: + archsuffix = {3:".bin", 5:".nxbin"} +--- 257,275 ---- + del args[0] + + if e is None: + e = b + +! try: +! host = args[0] +! filename = args[1] +! except: +! print "Usage: dmupdate.py [-rqsg] [-b <addr] [-e <addr>] <hostname> <filename>" +! print "filename as .cmtl is preferred. .bin (ARM7) and .nxbin (Cortex-M) also work" +! print "For more help:" +! print "less +96 -S /usr/share/nslink/README.txt" +! sys.exit(1) + + if not zipfile.is_zipfile(filename): + binfile = open(filename,"rb") + else: + archsuffix = {3:".bin", 5:".nxbin"} |