Add OpenRC service scripts for Mihomo and Mihomo IPtables
This commit is contained in:
14
open-rc/mihomo-iptables
Normal file
14
open-rc/mihomo-iptables
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
description="Mihomo IPtables Rules"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
before mihomo
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Applying Mihomo IPtables rules"
|
||||
/usr/local/bin/iptables-mihomo-setup.sh
|
||||
eend $?
|
||||
}
|
||||
Reference in New Issue
Block a user