File: binfmt-support

package info (click to toggle)
cruft-ng 0.9.77
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,836 kB
  • sloc: cpp: 1,748; sh: 816; python: 233; makefile: 97; ansic: 82; perl: 75
file content (33 lines) | stat: -rwxr-xr-x 570 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

set -e

test -z "$CRUFT_ROOT" || exit 0

test -x /usr/sbin/update-binfmts || exit 0

/usr/sbin/update-binfmts --display | while read -r line
do
    case "$line" in
       package*)
            package="${line##*= }"
            echo "$package"
            echo "/var/lib/binfmts/$file"
            ;;
       type*)
            ;;
       offset*)
            ;;
       magic*)
            ;;
       mask*)
            ;;
       interpreter*)
            ;;
       detector*)
            ;;
       *)
            file="${line%% *}"
            ;;
    esac
done