Skip to content

Commit

Permalink
Merge pull request #35 from coolsnowwolf/master
Browse files Browse the repository at this point in the history
20200402更新
  • Loading branch information
xayane authored Apr 3, 2020
2 parents b8e30e9 + 78bec3e commit c4d2984
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 111 deletions.
2 changes: 1 addition & 1 deletion package/lean/luci-app-diskman/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=luci-app-diskman
PKG_VERSION:=v0.2.5
PKG_VERSION:=v0.2.7
PKG_RELEASE:=beta
PKG_MAINTAINER:=lisaac <https://github.com/lisaac/luci-app-diskman>
PKG_LICENSE:=AGPL-3.0
Expand Down
12 changes: 6 additions & 6 deletions package/libs/openssl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=openssl
PKG_BASE:=1.1.1
PKG_BUGFIX:=e
PKG_BUGFIX:=f
PKG_VERSION:=$(PKG_BASE)$(PKG_BUGFIX)
PKG_RELEASE:=2
PKG_RELEASE:=1
PKG_USE_MIPS16:=0
ENGINES_DIR=engines-1.1

PKG_BUILD_PARALLEL:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:= \
http://www.openssl.org/source/ \
http://www.openssl.org/source/old/$(PKG_BASE)/ \
http://ftp.fi.muni.cz/pub/openssl/source/ \
http://ftp.linux.hr/pub/openssl/source/ \
ftp://ftp.pca.dfn.de/pub/tools/net/openssl/source/
PKG_HASH:=694f61ac11cb51c9bf73f54e771ff6022b0327a43bbdfa1b2f19de1662a6dcbe
ftp://ftp.pca.dfn.de/pub/tools/net/openssl/source/ \
http://www.openssl.org/source/ \
http://www.openssl.org/source/old/$(PKG_BASE)/
PKG_HASH:=186c6bfe6ecfba7a5b48c47f8a1673d0f3b0e5ba2e25602dd23b629975da3f35

PKG_LICENSE:=OpenSSL
PKG_LICENSE_FILES:=LICENSE
Expand Down

This file was deleted.

4 changes: 2 additions & 2 deletions target/linux/ath79/generic/base-files/lib/upgrade/platform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ redboot_fis_do_upgrade() {
if [ "$magic" = "4349" ]; then
local kern_length=0x$(dd if="$sysup_file" bs=2 skip=1 count=4 2>/dev/null)

[ -f "$UPGRADE_BACKUP" ] && append="-j $UPGRADE_BACKUP"
[ -f "$CONF_TAR" ] && append="-j $CONF_TAR"
dd if="$sysup_file" bs=64k skip=1 2>/dev/null | \
mtd -r $append -F$kern_part:$kern_length:0x80060000,rootfs write - $kern_part:rootfs

elif [ "$magic" = "7379" ]; then
local board_dir=$(tar tf $sysup_file | grep -m 1 '^sysupgrade-.*/$')
local kern_length=$(tar xf $sysup_file ${board_dir}kernel -O | wc -c)

[ -f "$UPGRADE_BACKUP" ] && append="-j $UPGRADE_BACKUP"
[ -f "$CONF_TAR" ] && append="-j $CONF_TAR"
tar xf $sysup_file ${board_dir}kernel ${board_dir}root -O | \
mtd -r $append -F$kern_part:$kern_length:0x80060000,rootfs write - $kern_part:rootfs

Expand Down
6 changes: 3 additions & 3 deletions target/linux/bcm27xx/base-files/lib/upgrade/platform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ platform_do_upgrade() {

sync

if [ "$UPGRADE_OPT_SAVE_PARTITIONS" = "1" ]; then
if [ "$SAVE_PARTITIONS" = "1" ]; then
get_partitions "/dev/$diskdev" bootdisk

#extract the boot sector from the image
Expand Down Expand Up @@ -91,8 +91,8 @@ platform_copy_config() {
if export_partdevice partdev 1; then
mkdir -p /boot
[ -f /boot/kernel.img ] || mount -t vfat -o rw,noatime "/dev/$partdev" /boot
cp -af "$UPGRADE_BACKUP" "/boot/$BACKUP_FILE"
tar -C / -zxvf "$UPGRADE_BACKUP" boot/config.txt
cp -af "$CONF_TAR" /boot/
tar -C / -zxvf "$CONF_TAR" boot/config.txt
sync
unmount /boot
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ platform_check_image() {
platform_copy_config_emmc() {
mkdir -p /recovery
mount -o rw,noatime /dev/mmcblk0p1 /recovery
cp -af "$UPGRADE_BACKUP" "/recovery/$BACKUP_FILE"
cp -af "$CONF_TAR" "/recovery/$CONF_TAR"
sync
umount /recovery
}
Expand Down
2 changes: 1 addition & 1 deletion target/linux/mvebu/base-files/lib/preinit/79_move_config
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ move_config() {
esac
mkdir -p /boot
mount -o rw,noatime "/dev/$partdev" /boot
[ -f "/boot/$BACKUP_FILE" ] && mv -f "/boot/$BACKUP_FILE" /
[ -f /boot/sysupgrade.tgz ] && mv -f /boot/sysupgrade.tgz /
umount /boot
fi
}
Expand Down
8 changes: 4 additions & 4 deletions target/linux/mvebu/base-files/lib/preinit/81_linksys_syscfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ preinit_mount_syscfg() {
fi
mkdir /tmp/syscfg
mount -t ubifs ubi1:syscfg /tmp/syscfg
[ -f "/tmp/syscfg/$BACKUP_FILE" ] && {
[ -f /tmp/syscfg/sysupgrade.tgz ] && {
echo "- config restore -"
cd /
mv "/tmp/syscfg/$BACKUP_FILE" /tmp
tar xzf "/tmp/$BACKUP_FILE"
rm -f "/tmp/$BACKUP_FILE"
mv /tmp/syscfg/sysupgrade.tgz /tmp
tar xzf /tmp/sysupgrade.tgz
rm -f /tmp/sysupgrade.tgz
sync
}
;;
Expand Down
6 changes: 3 additions & 3 deletions target/linux/mvebu/base-files/lib/preinit/82_uDPU
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ preinit_mount_udpu() {
if [ -b "${mmcdev}p4" ]; then
mkdir /misc
mount -t f2fs ${mmcdev}p4 /misc
[ -f "/misc/$BACKUP_FILE" ] && {
[ -f /misc/sysupgrade.tgz ] && {
echo "- Restoring configuration files -"
tar xzf "/misc/$BACKUP_FILE" -C /
rm -f "/misc/$BACKUP_FILE"
tar xzf /misc/sysupgrade.tgz -C /
rm -f /misc/sysupgrade.tgz
sync
}
[ -f "/misc/firmware/recovery.itb" ] && {
Expand Down
2 changes: 1 addition & 1 deletion target/linux/mvebu/base-files/lib/upgrade/linksys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ platform_do_upgrade_linksys() {
}

platform_copy_config_linksys() {
cp -f "$UPGRADE_BACKUP" "/tmp/syscfg/$BACKUP_FILE"
cp -f /tmp/sysupgrade.tgz /tmp/syscfg/sysupgrade.tgz
sync
}
11 changes: 6 additions & 5 deletions target/linux/mvebu/base-files/lib/upgrade/platform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ platform_check_image() {
case "$(board_name)" in
cznic,turris-omnia|globalscale,espressobin|globalscale,espressobin-emmc|globalscale,espressobin-v7|globalscale,espressobin-v7-emmc|\
marvell,armada8040-mcbin|solidrun,clearfog-base-a1|solidrun,clearfog-pro-a1)
platform_check_image_sdcard "$1"
platform_check_image_sdcard "$ARGV"
;;
*)
return 0
Expand All @@ -22,20 +22,21 @@ platform_check_image() {
platform_do_upgrade() {
case "$(board_name)" in
linksys,caiman|linksys,cobra|linksys,mamba|linksys,rango|linksys,shelby|linksys,venom)
platform_do_upgrade_linksys "$1"
platform_do_upgrade_linksys "$ARGV"
;;
cznic,turris-omnia|globalscale,espressobin|globalscale,espressobin-emmc|globalscale,espressobin-v7|globalscale,espressobin-v7-emmc|\
marvell,armada8040-mcbin|solidrun,clearfog-base-a1|solidrun,clearfog-pro-a1)
platform_do_upgrade_sdcard "$1"
platform_do_upgrade_sdcard "$ARGV"
;;
methode,udpu)
platform_do_upgrade_uDPU "$1"
platform_do_upgrade_uDPU "$ARGV"
;;
*)
default_do_upgrade "$1"
default_do_upgrade "$ARGV"
;;
esac
}

platform_copy_config() {
case "$(board_name)" in
linksys,caiman|linksys,cobra|linksys,mamba|linksys,rango|linksys,shelby|linksys,venom)
Expand Down
4 changes: 2 additions & 2 deletions target/linux/mvebu/base-files/lib/upgrade/sdcard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ platform_do_upgrade_sdcard() {

sync

if [ "$UPGRADE_OPT_SAVE_PARTITIONS" = "1" ]; then
if [ "$SAVE_PARTITIONS" = "1" ]; then
get_partitions "/dev/$diskdev" bootdisk

#extract the boot sector from the image
Expand Down Expand Up @@ -106,7 +106,7 @@ platform_copy_config_sdcard() {
if export_partdevice partdev 1; then
mkdir -p /boot
[ -f /boot/kernel.img ] || mount -o rw,noatime /dev/$partdev /boot
cp -af "$UPGRADE_BACKUP" "/boot/$BACKUP_FILE"
cp -af "$CONF_TAR" /boot/
sync
umount /boot
fi
Expand Down
4 changes: 2 additions & 2 deletions target/linux/mvebu/base-files/lib/upgrade/uDPU.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ platform_do_upgrade_uDPU() {

platform_copy_config_uDPU() {
# Config is saved on the /misc partition and copied on the rootfs after the reboot
if [ -f "$UPGRADE_BACKUP" ]; then
cp -f "$UPGRADE_BACKUP" "/misc/$BACKUP_FILE"
if [ -f /tmp/sysupgrade.tgz ]; then
cp -f /tmp/sysupgrade.tgz /misc/
sync
fi
}

0 comments on commit c4d2984

Please sign in to comment.