]> git.pld-linux.org Git - packages/binfmt-detector.git/blame - binfmt-detector.upstart
- update upstart deps
[packages/binfmt-detector.git] / binfmt-detector.upstart
CommitLineData
e0d6b46c
ER
1description "Microsoft PE executable type detector"
2
3start on virtual-filesystems
4
5task
6
7env BINFMT_DIR="/proc/sys/fs/binfmt_misc"
8
9script
10 if ! grep -q ${BINFMT_DIR} /proc/mounts; then
11 /bin/mount none -t binfmt_misc ${BINFMT_DIR} || :
12 fi
13
14 echo ':windows:M::MZ::/usr/bin/binfmt-detector:' > ${BINFMT_DIR}/register
15 echo ':windowsPE:M::PE::/usr/bin/binfmt-detector:' > ${BINFMT_DIR}/register
16end script
17
18post-stop script
19 [ -f ${BINFMT_DIR}/windows ] && echo '-1' > ${BINFMT_DIR}/windows
20 [ -f ${BINFMT_DIR}/windowsPE ] && echo '-1' > ${BINFMT_DIR}/windowsPE
21end script
This page took 0.111929 seconds and 4 git commands to generate.