aboutsummaryrefslogtreecommitdiff
path: root/postscript/prologues/set_ip.ps
blob: 55c2e12d7cdde8db49e1e6b089ce8bbe5184dda2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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