mirror of
https://github.com/andrey271192/Keenetic-Split-DNS.git
synced 2026-09-21 12:02:01 +00:00
Initial release: install, uninstall, SmartDNS, web UI
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
17
init.d/S97ksd-compile
Executable file
17
init.d/S97ksd-compile
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
# Keenetic-Split-DNS — compile config on boot
|
||||
|
||||
KSD_ETC="/opt/etc/keenetic-split-dns"
|
||||
COMPILE="/opt/share/keenetic-split-dns/scripts/compile-config.sh"
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
[ -x "$COMPILE" ] && [ -f "${KSD_ETC}/config.yaml" ] && "$COMPILE"
|
||||
;;
|
||||
stop) ;;
|
||||
restart)
|
||||
"$0" stop
|
||||
"$0" start
|
||||
;;
|
||||
esac
|
||||
exit 0
|
||||
Reference in New Issue
Block a user