🌴 Sync 2026-03-05 23:51:42

This commit is contained in:
github-actions[bot] committed 2026-03-05 23:51:42 +08:00
1 parent 97c049ed0a
commit 0acff03804
14253 files changed
+3893239

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
config sysuh3c 'config'
option enabled '0'
option username ''
option password ''
option method ''
option ifname ''
+37
View File
@@ -0,0 +1,37 @@
#!/bin/sh /etc/rc.common
USE_PROCD=1
START=99
CONF="sysuh3c"
start_service() {
config_load "$CONF"
local enabled
config_get_bool enabled "config" "enabled" "0"
[ "$enabled" -eq "1" ] || return 1
local username password method ifname
config_get username "config" "username"
config_get password "config" "password"
config_get method "config" "method"
config_get ifname "config" "ifname"
procd_open_instance
procd_set_param command "/usr/sbin/sysuh3c"
procd_append_param command -u "$username"
[ -z "$password" ] || procd_append_param command -p "$password"
[ -z "$method" ] || procd_append_param command -m "$method"
procd_append_param command -i "$ifname"
procd_set_param respawn 3600 10 5
procd_set_param stdout 1
procd_set_param stderr 1
procd_close_instance
}
service_triggers() {
procd_add_reload_trigger "$CONF"
}
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
grep -q "config login$" "/etc/config/sysuh3c" || exit 0
sed -e "s,config login,config sysuh3c 'config'," \
-e "s,option enable ,option enabled ," \
-e "/blockstartup/d" \
-i "/etc/config/sysuh3c"
exit 0