From 9b14d94a0fdbfe29141785c0c8a8a10ff26b7290 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Mon, 14 May 2018 20:08:27 +0000 Subject: [PATCH] Use rename instead of bash substitution --- debian9-x86_64.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian9-x86_64.sh b/debian9-x86_64.sh index 5c682cd..5fe0666 100644 --- a/debian9-x86_64.sh +++ b/debian9-x86_64.sh @@ -24,8 +24,10 @@ echo 'deb http://deb.debian.org/debian stretch-backports main' > /etc/apt/source apt-get update wget -O /tmp/linux-image-4.14.24-mptcp-64056fa.amd64.deb http://www.openmptcprouter.com/kernel/linux-image-4.14.24-mptcp-64056fa.amd64.deb wget -O /tmp/linux-headers-4.14.24-mptcp-64056fa.amd64.deb http://www.openmptcprouter.com/kernel/linux-headers-4.14.24-mptcp-64056fa.amd64.deb +# Rename bzImage to vmlinuz, needed when custom kernel was used cd /boot -for file in bzImage* ; do mv $file ${file/bzImage/vmlinuz} ; done +apt-get install rename +rename 's/^bzImage/vmlinuz/s' * #apt-get -y install linux-mptcp dpkg -i /tmp/linux-image-4.14.24-mptcp-64056fa.amd64.deb dpkg -i /tmp/linux-headers-4.14.24-mptcp-64056fa.amd64.deb