mirror of
https://github.com/xopenwrt/X-OpenWrt-New.git
synced 2026-09-27 15:24:45 +00:00
Update diy-script.sh
This commit is contained in:
@@ -59,6 +59,7 @@ ExtraPackages git OpenClash https://github.com/vernesong master
|
|||||||
|
|
||||||
Diy-Part2() {
|
Diy-Part2() {
|
||||||
echo "[$(date "+%H:%M:%S")] Current Openwrt version: $Lede_Version-`date +%Y%m%d`"
|
echo "[$(date "+%H:%M:%S")] Current Openwrt version: $Lede_Version-`date +%Y%m%d`"
|
||||||
|
echo "[$(date "+%H:%M:%S")] Current Device: $TARGET_PROFILE"
|
||||||
if [ ! $(grep -o "Compiled by $Author" $Default_File | wc -l) = "1" ];then
|
if [ ! $(grep -o "Compiled by $Author" $Default_File | wc -l) = "1" ];then
|
||||||
sed -i "s?$Lede_Version?$Lede_Version Compiled by $Author [$Compile_Date]?g" $Default_File
|
sed -i "s?$Lede_Version?$Lede_Version Compiled by $Author [$Compile_Date]?g" $Default_File
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user