diff options
Diffstat (limited to 'postscript/prologues/set_ip.ps')
-rw-r--r-- | postscript/prologues/set_ip.ps | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/postscript/prologues/set_ip.ps b/postscript/prologues/set_ip.ps new file mode 100644 index 00000000..55c2e12d --- /dev/null +++ b/postscript/prologues/set_ip.ps @@ -0,0 +1,30 @@ +%!PS-Adobe-3.0
+%% This file changes the IP Address on the Xante Accel-a-Writer
+
+%%Setting the IP Address will restart the printer!!
+
+%%Set The IP Address
+%(%IP%) <</IPAddress (135.104.7.83)>> setdevparams
+%(%IP%) <</NetworkMask (255.255.255.224)>> setdevparams
+%(%IP%) <</BroadcastAddress (135.104.7.95)>> setdevparams
+%(%IP%) <</GatewayAddress (0.0.0.0/135.104.7.65)>> setdevparams
+%serverdict begin 0 exitserver
+%systemdict /quit get exec
+
+
+%% Print out the IP address
+%%To print out the current IP Address, comment out the
+%%above commands under Set The IP Address with a percent
+%%sign. Uncomment the lines below by removing the leading % sign.
+
+/Courier findfont 24 scalefont setfont
+(%IP%) currentdevparams
+72 72 moveto +/IPAddress get show +72 144 moveto +/NetworkMask get show +72 216 moveto +/BroadcastAddress get show +72 288 moveto +/GatewayAddress get show +showpage
\ No newline at end of file |