script: fix package merging
This commit is contained in:
3
.github/workflows/lo-test.yml
vendored
3
.github/workflows/lo-test.yml
vendored
@@ -46,7 +46,8 @@ jobs:
|
|||||||
sudo losetup -P --direct-io $LOOP_DEVICE lede.img
|
sudo losetup -P --direct-io $LOOP_DEVICE lede.img
|
||||||
mkdir lede && sudo mount -o nossd,autodefrag,compress=zstd $LOOP_DEVICE lede
|
mkdir lede && sudo mount -o nossd,autodefrag,compress=zstd $LOOP_DEVICE lede
|
||||||
if [ -d 'lede/.git' ]; then
|
if [ -d 'lede/.git' ]; then
|
||||||
cd lede && git config --local user.email "action@github.com" && git config --local user.name "GitHub Action" && git pull --ff -X theirs
|
cd lede && git config --local user.email "action@github.com" && git config --local user.name "GitHub Action" && \
|
||||||
|
git fetch && git reset --hard origin/openwrt-18.06-k5.4 && git merge openwrt-18.06 || true
|
||||||
else
|
else
|
||||||
sudo chown $USER:$(id -gn) lede && (cd lede && git init && git remote add -t openwrt-18.06-k5.4 -f origin https://github.com/immortalwrt/immortalwrt && git checkout openwrt-18.06-k5.4)
|
sudo chown $USER:$(id -gn) lede && (cd lede && git init && git remote add -t openwrt-18.06-k5.4 -f origin https://github.com/immortalwrt/immortalwrt && git checkout openwrt-18.06-k5.4)
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,10 +1,15 @@
|
|||||||
git clone --depth=1 https://github.com/project-lede/luci-app-godproxy && rm -r package/luci-app-godproxy && mv luci-app-godproxy package/
|
function merge_package(){
|
||||||
git clone --depth=1 https://github.com/destan19/OpenAppFilter.git && rm -r package/OpenAppFilter && mv OpenAppFilter package/
|
rm -rf $1/.git
|
||||||
git clone --depth=1 -b 18.06 https://github.com/jerrykuku/luci-theme-argon.git && rm -r package/lean/luci-theme-argon && mv luci-theme-argon package/lean/
|
find package/ -type d -name $1 | xargs -r rm -r
|
||||||
|
mv $1 package/
|
||||||
|
}
|
||||||
|
|
||||||
svn co https://github.com/coolsnowwolf/lede/trunk/package/lean/luci-app-cifsd && rm -r package/lean/luci-app-ksmbd && mv luci-app-cifsd package/lean/
|
rm -rf luci-app-godproxy && git clone --depth=1 https://github.com/project-lede/luci-app-godproxy && merge_package luci-app-godproxy
|
||||||
svn co https://github.com/coolsnowwolf/packages/trunk/kernel/ksmbd && rm -r package/feeds/packages/ksmbd && mv ksmbd package/feeds/packages/
|
rm -rf luci-theme-argon && git clone --depth=1 -b 18.06 https://github.com/jerrykuku/luci-theme-argon && merge_package luci-theme-argon
|
||||||
svn co https://github.com/coolsnowwolf/packages/trunk/net/ksmbd-tools && rm -r package/feeds/packages/ksmbd-tools && mv ksmbd-tools package/feeds/packages/
|
|
||||||
|
rm -rf luci-app-ksmbd && svn co https://github.com/coolsnowwolf/lede/trunk/package/lean/luci-app-cifsd && merge_package luci-app-cifsd
|
||||||
|
rm -rf ksmbd && svn co https://github.com/coolsnowwolf/packages/trunk/kernel/ksmbd && merge_package ksmbd
|
||||||
|
rm -rf ksmbd-tools && svn co https://github.com/coolsnowwolf/packages/trunk/net/ksmbd-tools && merge_package ksmbd-tools
|
||||||
|
|
||||||
if [ $DEVICE = 'r2s' ]; then
|
if [ $DEVICE = 'r2s' ]; then
|
||||||
mkdir -p target/linux/rockchip/armv8/base-files/usr/bin &&\
|
mkdir -p target/linux/rockchip/armv8/base-files/usr/bin &&\
|
||||||
@@ -16,7 +21,7 @@ chmod +x target/linux/rockchip/armv8/base-files/etc/init.d/fa-rk3328-pwmfan
|
|||||||
mkdir -p target/linux/rockchip/armv8/base-files/etc/rc.d &&\
|
mkdir -p target/linux/rockchip/armv8/base-files/etc/rc.d &&\
|
||||||
ln -sf ../init.d/fa-rk3328-pwmfan target/linux/rockchip/armv8/base-files/etc/rc.d/S96fa-rk3328-pwmfan
|
ln -sf ../init.d/fa-rk3328-pwmfan target/linux/rockchip/armv8/base-files/etc/rc.d/S96fa-rk3328-pwmfan
|
||||||
|
|
||||||
git clone --depth=1 https://github.com/NateLol/luci-app-oled && rm -r package/luci-app-oled && mv luci-app-oled package/
|
rm -rf luci-app-oled && git clone --depth=1 https://github.com/NateLol/luci-app-oled && merge_package luci-app-oled
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sed -i 's/192.168.1.1/192.168.2.1/' package/base-files/files/bin/config_generate
|
sed -i 's/192.168.1.1/192.168.2.1/' package/base-files/files/bin/config_generate
|
||||||
|
|||||||
Reference in New Issue
Block a user