parent
0e97df7d85
commit
b687a89edf
@ -1,3 +1,3 @@
|
|||||||
SHA512 (wine-8.4.tar.xz) = 8de144a65c0a3a2984fabc1294b647b8581da5fa8bd28a9ff756ab59256ee2b453d898453fc902bbc372a4e017a8e29b1eeef917f137ec1134ac08b671eccc7d
|
SHA512 (wine-8.5.tar.xz) = f6aaab8a32eb7bce7f48d21d99417c9e6e8fe41b3d36320762775ef954db7ddd4fcff01d56475f35038d814557834a41a9e3ae85e5cae8a1b820c5044b42a327
|
||||||
SHA512 (wine-8.4.tar.xz.sign) = 45ee2bc5d8c68d47e4e8ffc112f5cb9c772ae8c2b24e77c758aaecd8e4566c1fe4ea2ade369147a48230874c77389a25ee6af2675d5282072cdb417be143c856
|
SHA512 (wine-8.5.tar.xz.sign) = e06378b8d1230ab25842b2595fac0aa436e22850a5bb3708bba02c4a80b4f2ea502ccf69c3f81182dfc5f646361b08289799f1235307efe510225493e7bf441d
|
||||||
SHA512 (wine-staging-8.4.tar.gz) = 96a6a870020e59f8437c65604536fec4b80d7d9e5a937e5d0a6cb0b2b4e544e6153fa0cdf2a8fd2c32d090001334e68124c2855c6a2a1454fdcdb6ea23d75fd7
|
SHA512 (wine-staging-8.5.tar.gz) = 9d347c55a62f661bdcc102d373e05d162217b7b1348bdb6f2b114d20e35146862379d2cf03a96916bd1d52166a538af55d48e25a169cd6ee23818673bd35909a
|
||||||
|
@ -1,89 +0,0 @@
|
|||||||
#!/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)
|
|
||||||
### BEGIN INIT INFO
|
|
||||||
# Provides: wine-binfmt
|
|
||||||
# Required-Start:
|
|
||||||
# Required-Stop:
|
|
||||||
# Default-Start: 2 3 4 5
|
|
||||||
# Default-Stop: 0 1 6
|
|
||||||
# Short-Description: Add and remove wine binary handler
|
|
||||||
# Description: Allow users to run Windows(tm) applications by just clicking
|
|
||||||
# on them (or typing ./file.exe)
|
|
||||||
### END INIT INFO
|
|
||||||
|
|
||||||
|
|
||||||
. /etc/rc.d/init.d/functions
|
|
||||||
RETVAL=0
|
|
||||||
|
|
||||||
start() {
|
|
||||||
# fix bug on changing runlevels #213230
|
|
||||||
if [ -e /proc/sys/fs/binfmt_misc/windows ]; then
|
|
||||||
echo -n $"Binary handler for Windows applications already registered"
|
|
||||||
else
|
|
||||||
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 || :
|
|
||||||
RETVAL=$?
|
|
||||||
[ $RETVAL -eq 0 ] && success || failure
|
|
||||||
fi
|
|
||||||
echo
|
|
||||||
}
|
|
||||||
|
|
||||||
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 || :
|
|
||||||
RETVAL=$?
|
|
||||||
[ $RETVAL -eq 0 ] && success || failure
|
|
||||||
echo
|
|
||||||
}
|
|
||||||
|
|
||||||
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
|
|
||||||
;;
|
|
||||||
reload)
|
|
||||||
stop
|
|
||||||
start
|
|
||||||
;;
|
|
||||||
condrestart|try-restart)
|
|
||||||
|
|
||||||
if [ -e /proc/sys/fs/binfmt_misc/windows ]; then
|
|
||||||
stop
|
|
||||||
start
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo $"Usage: $prog {start|stop|status|restart|reload|try-restart}"
|
|
||||||
exit 1
|
|
||||||
esac
|
|
||||||
exit $RETVAL
|
|
||||||
|
|
Loading…
Reference in new issue