File: extractdebkernel.sh

package info (click to toggle)
cowdancer 0.90
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 648 kB
  • sloc: ansic: 4,593; sh: 407; makefile: 142; cpp: 5
file content (10 lines) | stat: -rwxr-xr-x 284 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
# extract kernel file from DEB file.

# actually implement it.

FILENAMES=$(dpkg-deb --fsys-tarfile "$1" | tar xf - --wildcards ./boot/vmlinu\* )
echo extracting $FILENAMES
for f in $FILENAMES; do
    dpkg-deb --fsys-tarfile "$1" | tar xf - -O $f $(basename $f) > $f
done