mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-31 19:55:13 +08:00
🐤 Sync 2026-08-25 20:39:13
This commit is contained in:
1 parent
5d66ecc543
commit
d0d3c135a8
8 files changed
+66
-28
No files matched your search
@@ -2,10 +2,15 @@
|
||||
|
||||
mkdir -p /var/lock
|
||||
|
||||
for service in adb-enablemodem appfilter dockerd gpio_switch hd-idle \
|
||||
ADD_SERVICES=
|
||||
|
||||
[ "on" = "$DIND" ] || ADD_SERVICES="$ADD_SERVICES dockerd"
|
||||
|
||||
for service in adb-enablemodem appfilter gpio_switch hd-idle \
|
||||
kmods kmods-unload lcdsimple led lm-sensors luci-fan \
|
||||
mdadm modemmanager odhcpd smartd sysfixtime sysfsutils sysntpd \
|
||||
tuning_net umount usbmode usbmuxd wan_drop zprintk zram \
|
||||
$ADD_SERVICES \
|
||||
log
|
||||
do
|
||||
[ -x /etc/init.d/$service ] && /etc/init.d/$service disable
|
||||
|
||||
@@ -15,6 +15,8 @@ mount --make-private /overlay
|
||||
mount -t tmpfs -o ro,relatime tmpfs /sys/block
|
||||
mount -t tmpfs -o size=1M tmpfs /tmp
|
||||
|
||||
[ "on" = "$DIND" ] && mount -o rw,remount /sys/fs/cgroup
|
||||
|
||||
# make all private except /mnt
|
||||
mkdir -p $PATCHROM
|
||||
mount --bind / $PATCHROM
|
||||
@@ -66,6 +68,9 @@ umount $PATCHROM/tmp/shadowrt
|
||||
umount $PATCHROM/tmp
|
||||
rm -rf /tmp/tmp
|
||||
|
||||
export -n DIND
|
||||
unset DIND
|
||||
|
||||
set_default_ip()
|
||||
{
|
||||
local ip=$1
|
||||
|
||||
Reference in new issue
Block a user