Skip to content

Commit

Permalink
Fix bypass compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
haiibo committed Sep 26, 2022
1 parent 2cfef7f commit c755d08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions diy-mini.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ git clone --depth=1 https://github.com/haiibo/luci-app-onliner package/luci-app-
sed -i '/bin\/sh/a\uci set nlbwmon.@nlbwmon[0].refresh_interval=2s' package/lean/default-settings/files/zzz-default-settings
sed -i '/nlbwmon/a\uci commit nlbwmon' package/lean/default-settings/files/zzz-default-settings

# 修改 bypass 依赖
sed -i 's/luci-lib-ipkg/luci-base/g' package/luci-app-bypass/Makefile

# 修改版本为编译日期
date_version=$(date +"%Y.%m.%d")
orig_version=$(echo "$(cat package/lean/default-settings/files/zzz-default-settings)" | grep -Po "DISTRIB_REVISION=\'\K[^\']*")
Expand Down
3 changes: 3 additions & 0 deletions diy-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ svn co https://github.com/haiibo/packages/trunk/luci-app-onliner package/luci-ap
sed -i '/bin\/sh/a\uci set nlbwmon.@nlbwmon[0].refresh_interval=2s' package/lean/default-settings/files/zzz-default-settings
sed -i '/nlbwmon/a\uci commit nlbwmon' package/lean/default-settings/files/zzz-default-settings

# 修改 bypass 依赖
sed -i 's/luci-lib-ipkg/luci-base/g' package/luci-app-bypass/Makefile

# 修改版本为编译日期
date_version=$(date +"%Y.%m.%d")
orig_version=$(echo "$(cat package/lean/default-settings/files/zzz-default-settings)" | grep -Po "DISTRIB_REVISION=\'\K[^\']*")
Expand Down

0 comments on commit c755d08

Please sign in to comment.