diff options
author | rsc <devnull@localhost> | 2004-05-15 23:45:13 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-05-15 23:45:13 +0000 |
commit | 13f7391e4a38634221f4a63da9f58f58473e77b0 (patch) | |
tree | 65b538843c8fbfbb5000de18ad6145ce82531781 /postscript/prologues/set_ip.ps | |
parent | 36a9115fcbe8ddb0baacc07f8c33add9a9f7b307 (diff) | |
download | plan9port-13f7391e4a38634221f4a63da9f58f58473e77b0.tar.gz plan9port-13f7391e4a38634221f4a63da9f58f58473e77b0.tar.bz2 plan9port-13f7391e4a38634221f4a63da9f58f58473e77b0.zip |
More files!
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 |