]> git.pld-linux.org Git - packages/wine.git/commitdiff
- cleaning
authorankry <ankry@pld-linux.org>
Sun, 11 May 2003 15:15:00 +0000 (15:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    wine.init -> 1.7

wine.init

index e5d7f5aa3f4431e7937472e8d4ce73625ca89b38..efd6894c3979044c37225a819a79161a73ef88dc 100644 (file)
--- a/wine.init
+++ b/wine.init
 
 BINFMT_DIR='/proc/sys/fs/binfmt_misc'
 
+
 case "$1" in
   start)
-       if [ -f /var/lock/subsys/wine ]; then
-               msg_already_running "Wine"
-       else
+       if [ ! -f /var/lock/subsys/wine ]; 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
@@ -27,23 +26,27 @@ case "$1" in
                msg_starting "Wine"
                echo ':windows:M::MZ::/usr/bin/wine:' > ${BINFMT_DIR}/register
                echo ':windowsPE:M::PE::/usr/bin/wine:' > ${BINFMT_DIR}/register
-               deltext
                ok
+               touch /var/lock/subsys/wine
+       else
+               msg_already_running "Wine"
+               exit 1
        fi
-       touch /var/lock/subsys/wine
        ;;
   stop)
-        if [ ! -f /var/lock/subsys/wine ]; then
+        if [ -f /var/lock/subsys/wine ]; then
+               msg_stopping "Wine"
+               echo "-1" > ${BINFMT_DIR}/windows
+               echo "-1" > ${BINFMT_DIR}/windowsPE
+               rm -f /var/lock/subsys/wine
+               ok
+       else
                msg_not_running "Wine"
                exit 0
        fi
-       msg_stopping "Wine"
-       echo "-1" > ${BINFMT_DIR}/windows
-       echo "-1" > ${BINFMT_DIR}/windowsPE
-       rm -f /var/lock/subsys/wine
-       deltext
-       ok
        ;;
   *)
-       echo "Usage: $0 {start|stop}"
+       echo "usage: $0 {start|stop}"
 esac
+
+exit 0
This page took 0.190597 seconds and 4 git commands to generate.