extract_linux.sh 337 Bytes
Newer Older
1
#!/bin/bash
2
# This script is potentially useless.
3 4 5 6 7 8 9
deb="linux-image-unsigned-5.0.5-050005-generic_5.0.5-050005.201903271212_amd64.deb"
name="vmlinuz-5.0.5-050005-generic"
wget "https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0.5/$deb"
ar -x $deb data.tar.xz
rm $deb
tar -xOvf data.tar.xz ./boot/$name --wildcards > $name
rm data.tar.xz