Changed files:
binfmt-detector.init -> 1.4
BINFMT_DIR='/proc/sys/fs/binfmt_misc'
+[ ! -e "$BINFMT_DIR" ] && exit 0
+
start() {
if [ ! -f /var/lock/subsys/binfmt-detector ]; then
# check if binfmt_misc is not already mounted
if ! /bin/mount | grep -q "${BINFMT_DIR} type binfmt_misc"; then
- /bin/mount none -t binfmt_misc /proc/sys/fs/binfmt_misc
+ /bin/mount none -t binfmt_misc ${BINFMT_DIR}
fi
msg_starting 'binfmt-detector'
echo ':windows:M::MZ::/usr/bin/binfmt-detector.sh:' > ${BINFMT_DIR}/register