diff --git a/SD_ROOT/wz_mini/bin/dufs b/SD_ROOT/wz_mini/bin/dufs new file mode 100755 index 0000000..1764d1a Binary files /dev/null and b/SD_ROOT/wz_mini/bin/dufs differ diff --git a/SD_ROOT/wz_mini/etc/dufs.yaml b/SD_ROOT/wz_mini/etc/dufs.yaml new file mode 100755 index 0000000..9a145cb --- /dev/null +++ b/SD_ROOT/wz_mini/etc/dufs.yaml @@ -0,0 +1,32 @@ +# dufs configuration file + + +# Check https://github.com/sigoden/dufs for more info + +serve-path: '/opt' +bind: 0.0.0.0 +port: 5000 +path-prefix: +#hidden: +# - tmp +# - '*.log' +# - '*.lock' +auth: +# - admin:admin@/:rw +# - user:pass@/src:rw,/share +# - '@/' # According to the YAML spec, quoting is required. +allow-all: false +allow-upload: true +allow-delete: true +allow-search: true +allow-symlink: true +allow-archive: true +enable-cors: true +render-index: false +render-try-index: false +render-spa: false +#assets: ./assets/ +#log-format: '$remote_addr "$request" $status $http_user_agent' +#compress: low +#tls-cert: tests/data/cert.pem +#tls-key: tests/data/key_pkcs1.pem diff --git a/SD_ROOT/wz_mini/etc/init.d/S13fileserver b/SD_ROOT/wz_mini/etc/init.d/S13fileserver new file mode 100644 index 0000000..81561df --- /dev/null +++ b/SD_ROOT/wz_mini/etc/init.d/S13fileserver @@ -0,0 +1,25 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: +# Short-Description: Start dufs file server +# Description: Run the dufs file server daemon +### END INIT INFO + +. /opt/wz_mini/wz_mini.conf + +case "$1" in + start) + + echo "#####$(basename "$0")#####" + + if [[ "$ENABLE_FILESERVER" == "true" ]]; then + echo "Starting dufs file server" + /opt/wz_mini/bin/dufs -c /opt/wz_mini/etc/dufs.yaml & + fi + ;; + *) + echo "Usage: $0 {start}" + exit 1 + ;; +esac + diff --git a/SD_ROOT/wz_mini/usr/bin/app.ver b/SD_ROOT/wz_mini/usr/bin/app.ver index 80770f2..da640a5 100644 --- a/SD_ROOT/wz_mini/usr/bin/app.ver +++ b/SD_ROOT/wz_mini/usr/bin/app.ver @@ -1 +1 @@ -2024-01-09_23:55:50 +2024-01-10_15:32:41 diff --git a/SD_ROOT/wz_mini/wz_mini.conf b/SD_ROOT/wz_mini/wz_mini.conf index 53a0d54..7b8e07d 100644 --- a/SD_ROOT/wz_mini/wz_mini.conf +++ b/SD_ROOT/wz_mini/wz_mini.conf @@ -125,5 +125,8 @@ WEB_SERVER_AUTH="true" WEB_SERVER_LOGIN="admin" WEB_SERVER_PASSWORD="" +####FILE SERVER#### +ENABLE_FILESERVER="false" + #####SCRIPTING##### CUSTOM_SCRIPT_PATH="" diff --git a/file.chk b/file.chk index a778503..3565bac 100644 --- a/file.chk +++ b/file.chk @@ -57,6 +57,7 @@ edebe65d895650235f05291618814ebe SD_ROOT/wz_mini/etc/network.d/S08hostname 3f025fd89a69b99b0b2e235faf504930 SD_ROOT/wz_mini/etc/network.d/S17go2rtc 9f59e3c2c3a4c9b6600eb5385e29720c SD_ROOT/wz_mini/etc/network.d/S14storemac 32373fa3531a11c1aad41d12830b9c04 SD_ROOT/wz_mini/etc/dnsmasq.conf +f8122ed380beba449756c9c7c830a3d7 SD_ROOT/wz_mini/etc/dufs.yaml c2a988d4e9ef9cef939735f7e68f87ed SD_ROOT/wz_mini/etc/go2rtc.yml 34c6a4c3a941ff2becd9f487826d7692 SD_ROOT/wz_mini/etc/uvc.config 071acd61334923a9a3e5b799e012697e SD_ROOT/wz_mini/etc/init.d/S09firstboot @@ -68,6 +69,7 @@ c2a988d4e9ef9cef939735f7e68f87ed SD_ROOT/wz_mini/etc/go2rtc.yml 0ed5e2bce4fa5774cef30dfa276db3a8 SD_ROOT/wz_mini/etc/init.d/S30patchicamera 5e27d90e6888f9665da2fb442ebd500c SD_ROOT/wz_mini/etc/init.d/S08passwd 8d9b5da920bf9c739517de3843631334 SD_ROOT/wz_mini/etc/init.d/S12ssh +96444c64b409a9b6dba757f580e82482 SD_ROOT/wz_mini/etc/init.d/S13fileserver 366d62ff81290c520180f8ccf31a42d1 SD_ROOT/wz_mini/etc/init.d/S05mount 5e43108dcbb5d57ed45ab7f209ac9c11 SD_ROOT/wz_mini/etc/init.d/S21killmisc 0113d8e9beb7d393c61959889193ba0e SD_ROOT/wz_mini/etc/init.d/S01bind @@ -174,6 +176,7 @@ fc85b1621afae464664764d0e0b92d4d SD_ROOT/wz_mini/bin/dropbearconvert 3b3e8d38ba7fa70f29f6c340d36f3620 SD_ROOT/wz_mini/bin/iwlist 9041242b97793eb7f25943ecbfa86804 SD_ROOT/wz_mini/bin/ar 60aecc158af2c365200580a11f0e0061 SD_ROOT/wz_mini/bin/htop +2a31a6e6a061c99b954e36906064919d SD_ROOT/wz_mini/bin/dufs 84c336098e58e98b4a04eca6f3029449 SD_ROOT/wz_mini/swap.gz 2e4a762b311eb6bb82495956077e388d SD_ROOT/wz_mini/usr/share/misc/magic.mgc ce77db197f6f3a8965b64d2cd1ee74fb SD_ROOT/wz_mini/usr/share/terminfo.tar @@ -197,7 +200,7 @@ b339aee882a5d1c943ad08e4282ec3fd SD_ROOT/wz_mini/usr/bin/iCamera-dbg b10bdd54c56d8d8de2a27336f17285fe SD_ROOT/wz_mini/usr/bin/patch_icamera.sh dafffcc1bd1e721d508400686338ceb8 SD_ROOT/wz_mini/usr/bin/imp_helper.sh 580b1b6e91e72b4a4fef7b21d8954403 SD_ROOT/wz_mini/usr/bin/getSensorType -5592f6e024a489c226c4a7124a3a3f46 SD_ROOT/wz_mini/usr/bin/app.ver +e872b3854399a8d1a994f6a1c929f67b SD_ROOT/wz_mini/usr/bin/app.ver 4c780f0455481d106d47d89f0ae04ed5 SD_ROOT/wz_mini/lib/uClibc.tar 9afeb088e4cbabbe0b04033b560204d0 SD_ROOT/wz_mini/lib/libimp.so 4100755cb6cc6e3b76da20c7e3690e16 SD_ROOT/wz_mini/lib/libalog.so @@ -347,7 +350,7 @@ c6a2e765996b4a8bfe351757785fb989 SD_ROOT/wz_mini/lib/modules/3.10.14__isvp_swan 46791b695c5acd7d813f2a7198790a8a SD_ROOT/wz_mini/lib/libcallback_t20.so bd383994491e4bdca81788c168feb2eb SD_ROOT/wz_mini/lib/libasound.so.2 f6f0d5a9ebd916de6bdb9695067809ae SD_ROOT/wz_mini/lib/libaudioProcess.so -c2190e55d8672888d8083ec42200fb7c SD_ROOT/wz_mini/wz_mini.conf +2c5d65df4ce66343e7ea7f9d82c5f379 SD_ROOT/wz_mini/wz_mini.conf d41d8cd98f00b204e9800998ecf8427e SD_ROOT/wz_mini/tmp/.gitignore a0c14688cda288ec6726e43b2ded2c09 v2_install/compile_image.sh 533fc156f7853d8b21dfbe51e6a4c02e v2_install/fw_tool.sh