update-10.16

This commit is contained in:
github-actions[bot] 2021-10-16 09:07:40 +08:00
parent 9e32129d16
commit c7e40b0646
2 changed files with 10 additions and 8 deletions

View File

@ -38,8 +38,7 @@ define Package/$(PKG_NAME)/install
$(INSTALL_DATA) ./files/wifi-init.sh $(1)/lib/wifi/wifi-init.sh $(INSTALL_DATA) ./files/wifi-init.sh $(1)/lib/wifi/wifi-init.sh
$(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/wifi-init.init $(1)/etc/init.d/wifi-init $(INSTALL_BIN) ./files/wifi-init.init $(1)/etc/init.d/wifi-init
$(INSTALL_DIR) $(1)/etc/rc.d $(INSTALL_BIN) ./files/packages.init $(1)/etc/init.d/packages
$(INSTALL_BIN) ./files/opkg.rc.d $(1)/etc/rc.d/S99opkg
$(INSTALL_DIR) $(1)/etc/profile.d $(INSTALL_DIR) $(1)/etc/profile.d
$(INSTALL_BIN) ./files/sysinfo.sh $(1)/etc/profile.d/sysinfo.sh $(INSTALL_BIN) ./files/sysinfo.sh $(1)/etc/profile.d/sysinfo.sh
$(INSTALL_DIR) $(1)/sbin $(INSTALL_DIR) $(1)/sbin

View File

@ -1,9 +1,18 @@
#!/bin/sh #!/bin/sh
START=99
LOCK=/var/lock/opkgupgrade.lock LOCK=/var/lock/opkgupgrade.lock
BKOPKG="/etc/backup" BKOPKG="/etc/backup"
# 防止重复启动 # 防止重复启动
[ -f $LOCK ] && exit 1 [ -f $LOCK ] && exit 1
touch $LOCK touch $LOCK
if [ ! -f "$BKOPKG/user_installed.opkg" ]; then
touch /etc/inited
fi
function opkgupgrade() {
mkdir -p $BKOPKG mkdir -p $BKOPKG
if [ ! -f /etc/inited ]; then if [ ! -f /etc/inited ]; then
[ "$(uci -q get dhcp.@dnsmasq[0].noresolv)" ] && { [ "$(uci -q get dhcp.@dnsmasq[0].noresolv)" ] && {
@ -13,12 +22,6 @@ if [ ! -f /etc/inited ]; then
} }
# sh -c "cat '/usr/share/patch/adblock.patch' | patch -d '/' -p1 --forward" >/dev/null 2>&1 # sh -c "cat '/usr/share/patch/adblock.patch' | patch -d '/' -p1 --forward" >/dev/null 2>&1
fi fi
if [ ! -f "$BKOPKG/user_installed.opkg" ]; then
touch /etc/inited
fi
function opkgupgrade() {
c1=0 c1=0
c2=0 c2=0
c3=0 c3=0