This repository has been archived by the owner on May 21, 2018. It is now read-only.
forked from kliment/Printrun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.sh
73 lines (56 loc) · 1.5 KB
/
settings.sh
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
# include this boilerplate
printerServer='http://AUTODROP3D.COM/printerinterface/gcode'
printerName='drewsucks'
printerMaterial='PLA'
SIZEX='100'
SIZEY='100'
SIZEZ='300'
SERIALPORT='/dev/ttyS0'
SERIALSPEED='76800'
PRINTERSTYLE='prusa'
if [ $printerServer == 'NULL' ] ; then
echo "Your settings indicate you have an auto-ejection system configured."
echo "If you do, press any key to continue installation."
echo "If you do not, use Ctrl+C to cancel installation so you can fix your config."
read -p "Press any key to continue... " -n1 -s
fi
if [ $printerServer == 'NULL' ] ; then
echo "Please define a printer server."
exit 1;
fi
if [ $printerName == 'NULL' ] ; then
echo "Please define a printer name."
exit 1;
fi
if [ $printerColor == 'NULL' ] ; then
echo "Please define a material color."
exit 1;
fi
if [ $printerMaterial == 'NULL' ] ; then
echo "Please define a material type."
exit 1;
fi
if [ $SIZEX == 'NULL' ] ; then
echo "Please define the x-dimension of your print area."
exit 1;
fi
if [ $SIZEY == 'NULL' ] ; then
echo "Please define the y-dimension of your print area."
exit 1;
fi
if [ $SIZEZ == 'NULL' ] ; then
echo "Please define the z-dimension of your print area."
exit 1;
fi
if [ $SERIALPORT == 'NULL' ] ; then
echo "Please define the correct serial port for your printer."
exit 1;
fi
if [ $SERIALSPEED == 'NULL' ] ; then
echo "Please define the serial speed of your print controller."
exit 1;
fi
if [ $LOGGING !== 'TRUE' ] ; then
echo "No Print Logging is enabled."
fi