summarylogtreecommitdiffstats
path: root/clash-premium-script.install
diff options
context:
space:
mode:
Diffstat (limited to 'clash-premium-script.install')
-rw-r--r--clash-premium-script.install27
1 files changed, 27 insertions, 0 deletions
diff --git a/clash-premium-script.install b/clash-premium-script.install
new file mode 100644
index 000000000000..e070bc31197b
--- /dev/null
+++ b/clash-premium-script.install
@@ -0,0 +1,27 @@
+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 198.18.0.2: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() {
+ systemctl daemon-reload
+ systemctl restart clash
+}
+
+pre_remove() {
+ systemctl disable --now clash
+}
+
+post_remove() {
+ systemctl daemon-reload
+}