generated from P3TERX/Actions-OpenWrt
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathdiy-part1.sh
executable file
·41 lines (37 loc) · 1.4 KB
/
diy-part1.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
#
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com>
#
# This is free software, licensed under the MIT License.
# See /LICENSE for more information.
#
# https://github.com/P3TERX/Actions-OpenWrt
# File name: diy-part1.sh
# Description: OpenWrt DIY script part 1 (Before Update feeds)
#
# Uncomment a feed source
#sed -i 's/^#\(.*helloworld\)/\1/' feeds.conf.default
# Add a feed source
#echo 'src-git helloworld https://github.com/fw876/helloworld' >>feeds.conf.default
#echo 'src-git passwall https://github.com/xiaorouji/openwrt-passwall' >>feeds.conf.default
#=========================================
# add feeds
#=========================================
if [ -e feeds.conf.default ]; then
cat >> feeds.conf.default << EOF
# src-git openclash https://github.com/vernesong/OpenClash.git;master
# src-git helloworld https://github.com/fw876/helloworld
# src-git passwall https://github.com/xiaorouji/openwrt-passwall
# 包含 openclash , SSR+ 和 passwall 等
src-git kenzo https://github.com/kenzok8/small-package
# src-git kenzo https://github.com/kenzok8/openwrt-packages
# passwall 等的依赖
# src-git small https://github.com/kenzok8/small
EOF
echo 已增补内容至默认源配置文件[feeds.conf.default]
echo ===========feeds.conf.default===========
cat feeds.conf.default
echo ====================================
else
echo 找不到默认源配置文件[feeds.conf.default]
fi