blob: 3d4ea4a33be3d4efa8e8ab7089d29c857d9ed875 (
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
31
32
33
34
|
# Some colored makepkg-like functions
msg_blue()
{
printf "${BLUE}==>${ALL_OFF}${BOLD} ${1}${ALL_OFF}\n"
}
note_blue()
{
printf "${BLUE}==>${ALL_OFF}${BOLD} NOTE${1}:${ALL_OFF} ${2}\n"
}
ALL_OFF="$(tput sgr0)"
BOLD="$(tput bold)"
BLUE="${BOLD}$(tput setaf 4)"
GREEN="${BOLD}$(tput setaf 2)"
post_install()
{
echo
msg_blue "Make sure you have permission to write to your 3D printer device."
msg_blue "If not, add your username to uucp group in /etc/group and log out."
echo
msg_blue "If you are unable to connect to your printer, change baudrate"
msg_blue "in File -> Preferences to 115200 (250000 is known to not work quite often)"
msg_blue "and restart Cura afterwards. If you see garbage in the ultimaker console"
msg_blue "when you connect to the printer try lowering the baudrate even more."
msg_blue "Don't forget to restart Cura after each change."
echo
}
post_upgrade()
{
post_install
}
|