summarylogtreecommitdiffstats
path: root/nvman.install
blob: a0d2022ec693183cfcc637e7cd13508f4bd104c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
post_install() {
    echo "$(tput bold)$(tput setaf 6)::$(tput sgr0) Enabling nvman.service"
    systemctl enable nvman.service

    if [[ $? -ne 0 ]]; then 
        echo "$(tput bold)$(tput setaf 1)::$(tput sgr0) Failed to enable nvman.service"
        echo "$(tput bold)$(tput setaf 3)IMPORTANT!$(tput sgr0) Please enable nvman.service manually"
    else 
        echo "$(tput bold)$(tput setaf 6)::$(tput sgr0) Succesfully enabled nvman.service"
    fi

    # Reminders
    echo "$(tput bold)$(tput setaf 3)IMPORTANT!$(tput sgr0) Don't disable nvman.service"
    echo "$(tput bold)$(tput setaf 3)IMPORTANT!$(tput sgr0) Remember that optimus-manager only works with Xorg!"

    # Suggestions
    echo -n "$(tput bold)$(tput setaf 3)IMPORTANT!$(tput sgr0) If you want to change your default"
    echo " service use 'nvman default <service>' (default: optimus)"
}