mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Add disable failsafe option
This commit is contained in:
parent
eba75e9f8c
commit
f9ffecb8b2
1 changed files with 6 additions and 0 deletions
6
build.sh
6
build.sh
|
@ -39,6 +39,7 @@ OMR_TARGET_CONFIG="config-$OMR_TARGET"
|
|||
UPSTREAM=${UPSTREAM:-no}
|
||||
OMR_KERNEL=${OMR_KERNEL:-5.4}
|
||||
SHORTCUT_FE=${SHORTCUT_FE:-no}
|
||||
DISABLE_FAILSAFE=${DISABLE_FAILSAFE:-no}
|
||||
#OMR_RELEASE=${OMR_RELEASE:-$(git describe --tags `git rev-list --tags --max-count=1` | sed 's/^\([0-9.]*\).*/\1/')}
|
||||
#OMR_RELEASE=${OMR_RELEASE:-$(git tag --sort=committerdate | tail -1)}
|
||||
OMR_RELEASE=${OMR_RELEASE:-$(git describe --tags `git rev-list --tags --max-count=1` | tail -1)}
|
||||
|
@ -293,6 +294,11 @@ if [ "$OMR_IMG" = "yes" ] && [ "$OMR_TARGET" = "x86_64" ]; then
|
|||
echo 'CONFIG_VHDX_IMAGES=y' >> "$OMR_TARGET/${OMR_KERNEL}/source/.config"
|
||||
fi
|
||||
|
||||
if [ "$DISABLE_FAILSAFE" = "yes" ]; then
|
||||
rm -f "$OMR_TARGET/${OMR_KERNEL}/source/package/base-files/files/lib/preinit/30_failsafe_wait"
|
||||
rm -f "$OMR_TARGET/${OMR_KERNEL}/source/package/base-files/files/lib/preinit/40_run_failsafe_hook"
|
||||
fi
|
||||
|
||||
if [ "$OMR_PACKAGES" = "full" ]; then
|
||||
echo "CONFIG_PACKAGE_${OMR_DIST}-full=y" >> "$OMR_TARGET/${OMR_KERNEL}/source/.config"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue