We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d41ff97 commit 6afb815Copy full SHA for 6afb815
luci-app-neko/htdocs/nekoclash/configs.php
@@ -2,13 +2,12 @@
2
include './cfg.php';
3
4
$dirPath = "$neko_dir/config";
5
-$tmpPath = "$neko_www/lib/selected_config.txt";
6
$arrFiles = array();
7
$arrFiles = glob("$dirPath/*.yaml");
8
9
if(isset($_POST['clashconfig'])){
10
$dt = $_POST['clashconfig'];
11
- shell_exec("echo $dt > $tmpPath");
+ shell_exec("uci set neko.cfg.selected_config='$dt' && uci commit neko");
12
$selected_config = $dt;
13
}
14
if(isset($_POST['neko'])){
0 commit comments