From 616cb5c4944a1cf648133195bb702c7cadb5f50d Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Wed, 1 May 2019 00:38:39 +0000 Subject: [PATCH] Force use of mptcp kernel in all case --- update-grub.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update-grub.sh b/update-grub.sh index e7d2a44..093c231 100755 --- a/update-grub.sh +++ b/update-grub.sh @@ -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 \ No newline at end of file +#fi \ No newline at end of file