diff options
author | midnightix | 2021-06-20 00:04:14 +0800 |
---|---|---|
committer | midnightix | 2021-06-20 00:04:14 +0800 |
commit | 08b5c3af822dca5356b64b82fa7b3b33734bd444 (patch) | |
tree | 655c5b2cc954401b3d253e1243c592d433562c00 /clash-premium-tun.install | |
download | aur-08b5c3af822dca5356b64b82fa7b3b33734bd444.tar.gz |
create the repository
Diffstat (limited to 'clash-premium-tun.install')
-rw-r--r-- | clash-premium-tun.install | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/clash-premium-tun.install b/clash-premium-tun.install new file mode 100644 index 000000000000..d269f829dedb --- /dev/null +++ b/clash-premium-tun.install @@ -0,0 +1,30 @@ +post_install() { + systemctl daemon-reload + echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" + echo "+ Install successfully +" + echo "+ +" + echo "+ Home directory at /etc/clash +" + echo "+ +" + echo "+ All dns traffic will be redirected to 1.0.0.1:53 +" + echo "+ Please use clash core's 'tun.dns-hijack' to handle it +" + echo "+ +" + echo "+ Use 'systemctl start clash' to start +" + echo "+ Use 'systemctl enable clash' to enable auto-restart on boot +" + echo "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" +} + +post_upgrade() { + post_install +} + +pre_remove() { + systemctl stop clash + systemctl disable clash + if [ -f /etc/clash/config.yaml ]; then + mv /etc/clash/config.yaml /etc/clash/config.yaml.bak + fi +} + +post_remove() { + systemctl daemon-reload +} |