update-10.16
This commit is contained in:
parent
9e32129d16
commit
c7e40b0646
|
@ -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
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue