From 700e84716e825c42bd06e972d731bf3b2b4a4871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=90=E8=AF=9D?= <49544781+xiaomeng9597@users.noreply.github.com> Date: Wed, 17 Apr 2024 22:50:43 +0800 Subject: [PATCH] Add files via upload --- diy-part1.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/diy-part1.sh b/diy-part1.sh index 70fb632..8020c8e 100644 --- a/diy-part1.sh +++ b/diy-part1.sh @@ -10,3 +10,8 @@ # 修改版本为编译日期,数字类型。 date_version=$(date +"%Y%m%d%H") echo $date_version > version + +# 为iStoreOS固件版本加上编译作者 +author="xiaomeng9597" +sed -i "s/DISTRIB_DESCRIPTION.*/DISTRIB_DESCRIPTION='%D %V ${date_version} by ${author}'/g" package/base-files/files/etc/openwrt_release +sed -i "s/OPENWRT_RELEASE.*/OPENWRT_RELEASE=\"%D %V ${date_version} by ${author}\"/g" package/base-files/files/usr/lib/os-release \ No newline at end of file