diff options
author | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:53:33 +0300 |
---|---|---|
committer | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:53:33 +0300 |
commit | e463eb40363ff4c68b1d903f4e0cdd0ac1c5977f (patch) | |
tree | d5e9f57c28f026cb21de3bd77cc10cd7f64aaa85 /sys/lib/postscript/prologues/set_ip.ps | |
parent | b41b9034225ab3e49980d9de55c141011b6383b0 (diff) |
Import sources from 2011-03-30 iso image - sys/lib
Diffstat (limited to 'sys/lib/postscript/prologues/set_ip.ps')
-rwxr-xr-x | sys/lib/postscript/prologues/set_ip.ps | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sys/lib/postscript/prologues/set_ip.ps b/sys/lib/postscript/prologues/set_ip.ps new file mode 100755 index 000000000..55c2e12d7 --- /dev/null +++ b/sys/lib/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 |