update 2026-09-26 11:07:27

This commit is contained in:
action committed 2026-09-26 11:07:27 +08:00
1 parent 7b88b273d0
commit 97ae9f68da
4898 files changed
-1712274

No files matched your search

-13
View File
@@ -1,13 +0,0 @@
#
# Copyright (C) 2019 rosysong@rosinson.com
#
config rosyfs default
# Web title
option title 'Rosy File Server'
# Path to share
option target '/www'
option disabled '0'
-29
View File
@@ -1,29 +0,0 @@
#!/bin/sh /etc/rc.common
#
# Copyright (C) 2019 rosysong@rosinson.com
#
START=99
USE_PROCD=1
SHARE_PATH=/www/rosyfs-share
service_triggers() {
procd_add_reload_trigger rosyfs
}
start_service() {
config_load rosyfs
config_get disabled default disabled '0'
config_get target default target ''
[ $disabled -eq 1 ] && return
[ -n "$target" -a ! "$(readlink $SHARE_PATH)" = "$target" ] && {
rm -f $SHARE_PATH
ln -s $target $SHARE_PATH
}
}
stop_service() {
rm -f $SHARE_PATH
}