mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Use rust from package feed when kernel !=5.4
This commit is contained in:
parent
a7f9914024
commit
34638e448b
1 changed files with 7 additions and 0 deletions
7
build.sh
7
build.sh
|
@ -202,6 +202,10 @@ else
|
|||
# rm -rf "$OMR_TARGET/${OMR_KERNEL}/source/target/linux/ipq40xx"
|
||||
# mv -f "$OMR_TARGET/${OMR_KERNEL}/source/target/linux/ipq40xx.old" "$OMR_TARGET/${OMR_KERNEL}/source/target/linux/ipq40xx"
|
||||
fi
|
||||
if [ -n "$CUSTOM_FEED" ] && [ -d ${CUSTOM_FEED}/source/${OMR_TARGET}/${OMR_KERNEL} ]; then
|
||||
echo "Copy ${CUSTOM_FEED}/source/${OMR_TARGET}/${OMR_KERNEL}/* to $OMR_TARGET/${OMR_KERNEL}/source"
|
||||
cp -rf ${CUSTOM_FEED}/source/${OMR_TARGET}/${OMR_KERNEL}/* "$OMR_TARGET/${OMR_KERNEL}/source"
|
||||
fi
|
||||
|
||||
cat >> "$OMR_TARGET/${OMR_KERNEL}/source/package/base-files/files/etc/banner" <<EOF
|
||||
-----------------------------------------------------
|
||||
|
@ -882,6 +886,9 @@ if [ "$OMR_KERNEL" = "5.4" ]; then
|
|||
scripts/feeds uninstall netifd
|
||||
scripts/feeds install iproute2
|
||||
scripts/feeds install netifd
|
||||
else
|
||||
scripts/feeds uninstall rust
|
||||
scripts/feeds install rust
|
||||
fi
|
||||
cp .config.keep .config
|
||||
scripts/feeds install kmod-macremapper
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue