mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-09 20:34:08 +08:00
Merge pull request #154 from happy-game/dev
Dev 修复 `openwrt`的 getsrc 和 resetsrc
This commit is contained in:
commit
0b9e4c39bd
@ -3,6 +3,7 @@
|
|||||||
* -------------------------------------------------------------
|
* -------------------------------------------------------------
|
||||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
* Contributors : Yangmoooo <yangmoooo@outlook.com>
|
* Contributors : Yangmoooo <yangmoooo@outlook.com>
|
||||||
|
* | happy game <happygame1024@gmail.com>
|
||||||
* |
|
* |
|
||||||
* Created On : <2024-08-08>
|
* Created On : <2024-08-08>
|
||||||
* Last Modified : <2024-12-14>
|
* Last Modified : <2024-12-14>
|
||||||
@ -50,8 +51,9 @@ os_openwrt_setsrc (char *option)
|
|||||||
|
|
||||||
chsrc_backup (OS_OpenWRT_SourceConfig);
|
chsrc_backup (OS_OpenWRT_SourceConfig);
|
||||||
|
|
||||||
char *cmd = xy_strjoin (3, "sed -E -i 's@https?://.*/releases@", source.url, "@g' " OS_OpenWRT_SourceConfig);
|
char *cmd = xy_strjoin (3, "sed -E -i 's@https?://.*/releases@", source.url, "/releases@g' " OS_OpenWRT_SourceConfig);
|
||||||
|
|
||||||
|
chsrc_run (cmd, RunOpt_No_Last_New_Line);
|
||||||
chsrc_run ("opkg update", RunOpt_No_Last_New_Line);
|
chsrc_run ("opkg update", RunOpt_No_Last_New_Line);
|
||||||
|
|
||||||
ProgMode_ChgType = ProgMode_CMD_Reset ? ChgType_Reset : ChgType_Auto;
|
ProgMode_ChgType = ProgMode_CMD_Reset ? ChgType_Reset : ChgType_Auto;
|
||||||
@ -84,4 +86,4 @@ os_openwrt_feat (char *option)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def_target_gsf(os_openwrt);
|
def_target_gsrf(os_openwrt);
|
Loading…
x
Reference in New Issue
Block a user