summarylogtreecommitdiffstats
path: root/xf86-input-cmt.install
blob: 13f7bb055016619934060f7594384ed3e96c01e2 (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
msg_blue() {
	printf "${blue}=>${bold} $1${all_off}\n"
}

note() {
	printf "${blue}=>${yellow} NOTE:${bold} $1${all_off}\n"
}

all_off="$(tput sgr0)"
bold="${all_off}$(tput bold)"
blue="${blue}$(tput setaf 4)"
yellow="${bold}$(tput setaf 3)"

post_install(){
  msg_blue "Setting up correct configuration files"
  sudo cmt-conf-setup install
  msg_blue "To make sure you can use the cmt driver run:"
  msg_blue "# usermod -a -G input <user>"
  msg_blue "Where <user> is the user(s) wanting to use the touchpad."
  note "Finished, reboot to use the driver."
}

post_upgrade() {
	post_install
}