SOURCES: binfmt-detector.init - no point in starting if proc dir n...
arekm
arekm at pld-linux.org
Wed Mar 28 00:39:50 CEST 2007
Author: arekm Date: Tue Mar 27 22:39:50 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- no point in starting if proc dir not found (vserver for example)
---- Files affected:
SOURCES:
binfmt-detector.init (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SOURCES/binfmt-detector.init
diff -u SOURCES/binfmt-detector.init:1.3 SOURCES/binfmt-detector.init:1.4
--- SOURCES/binfmt-detector.init:1.3 Tue Sep 26 21:00:54 2006
+++ SOURCES/binfmt-detector.init Wed Mar 28 00:39:44 2007
@@ -17,11 +17,13 @@
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
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/binfmt-detector.init?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list