mirror of
https://github.com/andrey271192/Keenetic-Split-DNS.git
synced 2026-09-21 12:02:01 +00:00
18 lines
334 B
Bash
Executable File
18 lines
334 B
Bash
Executable File
#!/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
|