~openjdk/openjdk/openjdk6-1.9

« back to all changes in this revision

Viewing changes to JB-jre-headless.postinst.in

  • Committer: Matthias Klose
  • Date: 2008-10-15 11:39:04 UTC
  • Revision ID: doko@octogon-20081015113904-fx0b4f1g3bb5lhh2
* Fix some lintian warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
            $slave1 $slave2
49
49
    done
50
50
    update-alternatives \
51
 
        --install \
52
 
        /usr/bin/jexec \
53
 
        jexec \
54
 
        $basediralias/jre/lib/jexec \
55
 
        $priority \
 
51
        --install /usr/bin/jexec jexec $basediralias/jre/lib/jexec $priority \
56
52
        --slave \
57
53
            /usr/share/binfmts/jar \
58
54
            jexec-binfmt \
60
56
 
61
57
    # register binfmt; ignore errors, the alternative may already be
62
58
    # registered by another JRE.
63
 
    if [ -x /usr/sbin/update-binfmts ] && [ -r /usr/share/binfmts/jar ]; then
64
 
        /usr/sbin/update-binfmts --package @basename@ --import jar || true
 
59
    if which update-binfmts >/dev/null && [ -r /usr/share/binfmts/jar ]; then
 
60
        update-binfmts --package @basename@ --import jar || true
65
61
    fi
66
62
 
67
63
    mount | grep -qs 'on /proc type proc' || echo >&2 "/proc is not mounted; some java apps may fail"