post_install() { echo 'Clash for Windows has it own built-in autostart since 0.18.1.' echo 'Enable it will create .desktop file under $HOME/.config/autostart/' echo -e "\033[32m To use the TUN mode, you need to run \033[0m" echo -e "\033[32m sudo systemctl start clash-core-service@\$USER \033[0m" echo -e "\033[32m sudo systemctl enable clash-core-service@\$USER \033[0m" echo -e "\033[32m and change tun.dns-hijack to 198.18.0.2:53 \033[0m" } post_upgrade(){ post_install }