]> git.pld-linux.org Git - packages/binfmt-detector.git/commitdiff
- no point in starting if proc dir not found (vserver for example)
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 27 Mar 2007 22:39:44 +0000 (22:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    binfmt-detector.init -> 1.4

binfmt-detector.init

index c497e84c6e7d34a76faa17e1470fd868159175a9..927a4adb87b6c1f1d530c4b456f52c9f5edb7021 100644 (file)
 
 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
This page took 0.058487 seconds and 4 git commands to generate.