mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-07-31 20:11:29 +08:00
16 lines
351 B
Bash
Executable File
16 lines
351 B
Bash
Executable File
#!/bin/sh
|
|
|
|
function get_config_wechatpush(){
|
|
while [[ "$*" != "" ]]; do
|
|
eval ${1}='`uci get wechatpush.config.$1`' 2>/dev/null
|
|
uci del wechatpush.config.$1 2>/dev/null
|
|
uci commit wechatpush
|
|
shift
|
|
done
|
|
}
|
|
|
|
get_config_wechatpush "chat_id"
|
|
[ -n "$chat_id" ] && uci set wechatpush.config.tg_chat_id="$chat_id"
|
|
|
|
rm -rf /tmp/luci-* >/dev/null 2>&1
|