1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2019-05-01 00:38:39 +00:00
parent 5d699da057
commit 616cb5c494

View file

@ -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 ] || 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
sed -n -e 's@\([^'\"\'']*\)['\"\'']\([^'\"\'']*\).*@\1\2@' -e '/\(menuentry\) /p' <$config_file | \
while IFS= read ln
@ -21,4 +21,4 @@ if [ -z "$(grep -m 1 vmlinuz $config_file | grep $kernel)" ]; then
fi
x=$(expr $x + 1)
done | sed 's@\(menuentry\) @@'
fi
#fi