#!/bin/sh

export KSROOT=/koolshare
source $KSROOT/scripts/base.sh
eval $(dbus export merlinclash_)
alias echo_date='echo 【$(date +%Y年%m月%d日\ %X)】:'

pid_clash=$(pidof clash)
#pid_watchdog=$(ps | grep clash_watchdog.sh | grep -v grep | awk '{print $1}')
pid_watchdog=$(cru l | grep "clash_watchdog")
date=$(echo_date)
yamlname=${merlinclash_set_yamlsel_start}
yamlpath=/koolshare/merlinclash/yaml_use/$yamlname.yaml
lan_ipaddr=$(nvram get lan_ipaddr)




yamlsel_tmp2=$yamlname

#[ ! -L "/tmp/upload/yacd" ] && ln -sf /koolshare/merlinclash/dashboard/yacd /tmp/upload/
#[ ! -L "/tmp/upload/razord" ] && ln -sf /koolshare/merlinclash/dashboard/razord /tmp/upload/

http_response "$yamlsel_tmp2"

