1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-02-12 11:21:56 +00:00

Use rename instead of bash substitution

This commit is contained in:
Ycarus (Yannick Chabanois) 2018-05-14 20:08:27 +00:00
parent 84b8295f50
commit 9b14d94a0f

View file

@ -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