mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-02-12 11:21:56 +00:00
Force use of mptcp kernel in all case
This commit is contained in:
parent
5d699da057
commit
616cb5c494
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ config_file="$(find /boot/grub* -maxdepth 1 -name grub.cfg 2>/dev/null)"
|
||||||
deflt_file="$(find /etc/default \( -name grub -o -name grub2 \) 2>/dev/null)"
|
deflt_file="$(find /etc/default \( -name grub -o -name grub2 \) 2>/dev/null)"
|
||||||
[ $deflt_file ] || exit 0
|
[ $deflt_file ] || exit 0
|
||||||
|
|
||||||
if [ -z "$(grep -m 1 vmlinuz $config_file | grep $kernel)" ]; then
|
#if [ -z "$(grep -m 1 vmlinuz $config_file | grep $kernel)" ]; then
|
||||||
x=0
|
x=0
|
||||||
sed -n -e 's@\([^'\"\'']*\)['\"\'']\([^'\"\'']*\).*@\1\2@' -e '/\(menuentry\) /p' <$config_file | \
|
sed -n -e 's@\([^'\"\'']*\)['\"\'']\([^'\"\'']*\).*@\1\2@' -e '/\(menuentry\) /p' <$config_file | \
|
||||||
while IFS= read ln
|
while IFS= read ln
|
||||||
|
@ -21,4 +21,4 @@ if [ -z "$(grep -m 1 vmlinuz $config_file | grep $kernel)" ]; then
|
||||||
fi
|
fi
|
||||||
x=$(expr $x + 1)
|
x=$(expr $x + 1)
|
||||||
done | sed 's@\(menuentry\) @@'
|
done | sed 's@\(menuentry\) @@'
|
||||||
fi
|
#fi
|
Loading…
Reference in a new issue