]> git.pld-linux.org Git - packages/wine.git/blame - wine.init
- for standalone Wine
[packages/wine.git] / wine.init
CommitLineData
990dad56 1#!/bin/sh
2# $Id$
3#
4# wine: Allow users to run Windows(tm) applications by just clicking
5# on them (or typing ./file.exe)
6#
7# chkconfig: 2345 99 10
8#
9# description: Allow users to run Windows(tm) applications by just clicking
10# on them (or typing ./file.exe)
11#
12
13# Source function library
14. /etc/rc.d/init.d/functions
15
16case "$1" in
17 start)
18 _modprobe single binfmt_misc
19 msg_starting "Setting Wine configuration"
20 echo ':windows:M::MZ::/usr/X11R6/bin/wine:' >/proc/sys/fs/binfmt_misc/register
21 echo ':windowsPE:M::PE::/usr/X11R6/bin/wine:' >/proc/sys/fs/binfmt_misc/register
22 deltext
23 ok
24 ;;
25 stop)
26 msg_stopping "Wine"
27 echo "-1" >/proc/sys/fs/binfmt_misc/windows
28 echo "-1" >/proc/sys/fs/binfmt_misc/windowsPE
29 ;;
30 *)
31 echo "Usage: $0 {start|stop}"
32esac
This page took 0.068359 seconds and 4 git commands to generate.