0.0-0.fdr.2.20030911 - Fix SSL detection (need krb5), require openssl. - Disable ALSA by default, use "--with alsa" to enable. - Disable valgrind by default, use "--with valgrind" to enable. - Cosmetic improvements. Tue Sep 16 2003 Panu Matilainen <pmatilai@welho.com> 0.0-0.fdr.1.20030911 - update to 20030911 Tue Aug 19 2003 Panu Matilainen <pmatilai@welho.com> 0.0-0.fdr.1.20030813 - update to 20030813 Thu Jul 10 2003 Panu Matilainen <pmatilai@welho.com> 0.0-0.fdr.1.20030709 - update to 20030709 - add /lib/tls requirement -> only works with NTPL capable systems Wed Jul 02 2003 Panu Matilainen <pmatilai@welho.com> 0.0-0.fdr.1.20030618 - update to 20030618 Thu May 22 2003 Panu Matilainen <pmatilai@welho.com> 0.0-0.fdr.1.20030508 - update to 20030508 - add buildreq's & other QA issues from #255 Sat May 03 2003 Panu Matilainen <pmatilai@welho.com> 0.0-0.fdr.1.20030408 - package for fedora - based on modified RH wine from 8.0 found off the net
67 lines
1.3 KiB
Bash
67 lines
1.3 KiB
Bash
#!/bin/sh
|
|
#
|
|
# wine Allow users to run Windows(tm) applications by just clicking on them
|
|
# (or typing ./file.exe)
|
|
#
|
|
# chkconfig: 35 98 10
|
|
# description: Allow users to run Windows(tm) applications by just clicking \
|
|
# on them (or typing ./file.exe)
|
|
|
|
. /etc/rc.d/init.d/functions
|
|
RETVAL=0
|
|
|
|
start() {
|
|
echo -n $"Registering binary handler for Windows applications"
|
|
/sbin/modprobe binfmt_misc &>/dev/null
|
|
echo ':windows:M::MZ::/usr/bin/wine:' >/proc/sys/fs/binfmt_misc/register || :
|
|
echo ':windowsPE:M::PE::/usr/bin/wine:' >/proc/sys/fs/binfmt_misc/register || :
|
|
}
|
|
|
|
stop() {
|
|
echo -n $"Unregistering binary handler for Windows applications"
|
|
echo "-1" >/proc/sys/fs/binfmt_misc/windows || :
|
|
echo "-1" >/proc/sys/fs/binfmt_misc/windowsPE || :
|
|
}
|
|
|
|
reload() {
|
|
stop
|
|
start
|
|
}
|
|
|
|
wine_status() {
|
|
if [ -e /proc/sys/fs/binfmt_misc/windows ]; then
|
|
echo $"Wine binary format handlers are registered."
|
|
return 0
|
|
else
|
|
echo $"Wine binary format handlers are not registered."
|
|
return 3
|
|
fi
|
|
}
|
|
|
|
case "$1" in
|
|
start)
|
|
start
|
|
;;
|
|
stop)
|
|
stop
|
|
;;
|
|
status)
|
|
wine_status
|
|
RETVAL=$?
|
|
;;
|
|
restart)
|
|
stop
|
|
start
|
|
;;
|
|
condrestart)
|
|
if [ -e /proc/sys/fs/binfmt_misc/windows ]; then
|
|
stop
|
|
start
|
|
fi
|
|
;;
|
|
*)
|
|
echo $"Usage: $prog {start|stop|status|restart|condrestart}"
|
|
exit 1
|
|
esac
|
|
exit $RETVAL
|
|
|