mirror of
https://github.com/kenzok8/small-package.git
synced 2026-02-08 07:37:13 +08:00
update-10.16
This commit is contained in:
@@ -38,8 +38,7 @@ define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_DATA) ./files/wifi-init.sh $(1)/lib/wifi/wifi-init.sh
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/wifi-init.init $(1)/etc/init.d/wifi-init
|
||||
$(INSTALL_DIR) $(1)/etc/rc.d
|
||||
$(INSTALL_BIN) ./files/opkg.rc.d $(1)/etc/rc.d/S99opkg
|
||||
$(INSTALL_BIN) ./files/packages.init $(1)/etc/init.d/packages
|
||||
$(INSTALL_DIR) $(1)/etc/profile.d
|
||||
$(INSTALL_BIN) ./files/sysinfo.sh $(1)/etc/profile.d/sysinfo.sh
|
||||
$(INSTALL_DIR) $(1)/sbin
|
||||
|
||||
@@ -1,9 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
START=99
|
||||
|
||||
LOCK=/var/lock/opkgupgrade.lock
|
||||
BKOPKG="/etc/backup"
|
||||
# 防止重复启动
|
||||
[ -f $LOCK ] && exit 1
|
||||
touch $LOCK
|
||||
|
||||
if [ ! -f "$BKOPKG/user_installed.opkg" ]; then
|
||||
touch /etc/inited
|
||||
fi
|
||||
|
||||
function opkgupgrade() {
|
||||
mkdir -p $BKOPKG
|
||||
if [ ! -f /etc/inited ]; then
|
||||
[ "$(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
|
||||
fi
|
||||
|
||||
if [ ! -f "$BKOPKG/user_installed.opkg" ]; then
|
||||
touch /etc/inited
|
||||
fi
|
||||
|
||||
function opkgupgrade() {
|
||||
c1=0
|
||||
c2=0
|
||||
c3=0
|
||||
Reference in New Issue
Block a user