🌴 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

+4
View File
@@ -0,0 +1,4 @@
config docker
option wan_mode '0'
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
dtype=`fdisk -l /dev/sda | grep 'Disklabel type' | awk '{print $3}'`
partid="0"
if [ "$dtype" = "gpt" ]
then
partid=`echo "n
w
" | fdisk /dev/sda | grep 'Created a new partition' | awk '{print $5}'`
elif [ "$dtype" = "dos" ]
then
partid=`echo "n
p
w
" | fdisk /dev/sda | grep 'Created a new partition' | awk '{print $5}'`
fi
echo "y" | mkfs.ext4 /dev/sda$partid
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
docker run -d --restart=always --name="portainer" -p 9999:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
@@ -0,0 +1,4 @@
{
"data-root": "/opt/",
"log-level": "warn"
}
+21
View File
@@ -0,0 +1,21 @@
#!/bin/sh /etc/rc.common
USE_PROCD=1
START=25
start_service() {
local nofile=$(cat /proc/sys/fs/nr_open)
local wanmode=$(uci get docker.@docker[0].wan_mode)
if [ $wanmode = "1" ] ;then
dockerwan=" "
else
dockerwan="--iptables=false"
fi
procd_open_instance
procd_set_param stderr 1
procd_set_param command /usr/bin/dockerd $dockerwan
procd_set_param limits nofile="${nofile} ${nofile}"
procd_close_instance
}
@@ -0,0 +1,11 @@
{
"luci-app-docker": {
"description": "Grant UCI access for luci-app-docker",
"read": {
"uci": [ "dockerd" ]
},
"write": {
"uci": [ "dockerd" ]
}
}
}
@@ -0,0 +1,4 @@
{
"config": "docker",
"init": "docker"
}
Binary file not shown.