File: extractdebkernel.sh

package info (click to toggle)
cowdancer 0.73
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 752 kB
  • ctags: 269
  • sloc: ansic: 3,822; sh: 481; makefile: 191; cpp: 6
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