Skip to content

Commit

Permalink
Make dae/daed time correct
Browse files Browse the repository at this point in the history
  • Loading branch information
EkkoG committed Oct 19, 2023
1 parent a9f1a15 commit d621ab8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ fi


if [ -z $LAN_IP ]; then
LAN_IP="192.168.3.1"
echo "LAN IP 不可为空"
exit 1
fi

cp -r custom_files files

# sudo apt-get update
# sudo apt-get install tree
# tree files

PACKAGES_ARCH=$(cat .config | grep CONFIG_TARGET_ARCH_PACKAGES | awk -F '=' '{print $2}' | sed 's/"//g')
OPENWRT_VERSION=$(cat ./include/version.mk | grep 'VERSION_NUMBER:=$(if' | awk -F ',' '{print $3}' | awk -F ')' '{print $1}')
BIG_VERSION=$(echo $OPENWRT_VERSION | awk -F '.' '{print $1"."$2}')
Expand Down Expand Up @@ -150,6 +147,8 @@ sed -i '/CONFIG_VHDX_IMAGES/ c\# CONFIG_VHDX_IMAGES is not set' .config

# base packages
all_packages="luci luci-compat luci-lib-ipkg luci-i18n-opkg-zh-cn -dnsmasq dnsmasq-full luci-i18n-base-zh-cn luci-i18n-firewall-zh-cn openssl-util"
# Make time correct at OpenWrt https://github.com/daeuniverse/dae/discussions/345
all_packages="$all_packages zoneinfo-all"

if [ "$PROXY_CLIENT" = "openclash" ] || [[ "$EXTRA_PROXY_CLIENT" =~ "openclash" ]]; then
# openclash
Expand Down

0 comments on commit d621ab8

Please sign in to comment.