4 # wine: Allow users to run Windows(tm) applications by just clicking
5 # on them (or typing ./file.exe)
7 # chkconfig: 2345 99 10
9 # description: Allow users to run Windows(tm) applications by just clicking
10 # on them (or typing ./file.exe)
13 # Source function library
14 . /etc/rc.d/init.d/functions
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
27 echo "-1" >/proc/sys/fs/binfmt_misc/windows
28 echo "-1" >/proc/sys/fs/binfmt_misc/windowsPE
31 echo "Usage: $0 {start|stop}"