Add win4lin
This commit is contained in:
13
app-emulation/win4lin/files/registerme.sh
Executable file
13
app-emulation/win4lin/files/registerme.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo 'Your license evaluation code is:'
|
||||
echo '-> Win4Lin 4.x:'
|
||||
echo ' 1w4e053x-n0aaf8-7tw9-587j-h47j-d6'
|
||||
echo '-> Win4Lin 5.x'
|
||||
echo ' 1w5e055x-n0ca34-xjhx-xx3c-4c3c-73'
|
||||
echo
|
||||
echo 'Remember you need do this in root mode.'
|
||||
echo 'copy it and press a key to start the reg.'
|
||||
|
||||
read
|
||||
sh /opt/win4lin/bin/ask_license.sh
|
||||
68
app-emulation/win4lin/files/win4lin.initd
Normal file
68
app-emulation/win4lin/files/win4lin.initd
Normal file
@@ -0,0 +1,68 @@
|
||||
#!/sbin/runscript
|
||||
. /etc/mrgssv.sh
|
||||
|
||||
depend() {
|
||||
after *
|
||||
}
|
||||
|
||||
CLEAN_TMP() {
|
||||
[ -z "${VARMERGE}" ] && return
|
||||
find ${VARMERGE}/tmp -atime +1 -type f -exec rm {} \;
|
||||
return
|
||||
}
|
||||
|
||||
Work_Around() {
|
||||
[ "_${SYSTEMTYPE} != "_linux" ] && return
|
||||
# In certain situations on Linux systems, the Win4Lin installation
|
||||
# script does not complete.
|
||||
# If it looks like that situation then re-run the installation script
|
||||
# and force the making of the images. (Even though the images should
|
||||
# have been automatically created in this situation.)
|
||||
|
||||
# When the images are not there, but Windows files are loaded, then
|
||||
# re-run the install script and then explicitly make images.
|
||||
[ -r "${VARMERGE}"/image/std/mono/mono.img ] && return
|
||||
[ ! -r "${VARMERGE}"/dosroot/wincabs/info.txt ] && return
|
||||
|
||||
# Don't continue if the modules are not loaded.
|
||||
modules=`/sbin/lsmod|grep Mmerge`
|
||||
[ "x$modules" = "x" ] && return
|
||||
|
||||
[ -r "${VARMERGE}"/postinst-running ] && return
|
||||
touch "${VARMERGE}"/postinst-running
|
||||
sh "${STATICMERGE}"/postinst_rpm.sh \
|
||||
> "${VARMERGE}"/log/postinst-boot.log 2>&1
|
||||
|
||||
ls -l "${VARMERGE}"/image/std/* > "${VARMERGE}"/log/mkimg-boot.log 2>&1
|
||||
/usr/bin/mkimg >> "${VARMERGE}"/log/mkimg-boot.log 2>&1
|
||||
rm -f "${VARMERGE}"/postinst-running
|
||||
}
|
||||
|
||||
start() {
|
||||
if [ "_${SYSTEMTYPE}" != "_linux" ]
|
||||
then
|
||||
ebegin "Starting ${MERGENAME}"
|
||||
else
|
||||
ebegin "Starting ${MERGENAME}:"
|
||||
|
||||
CLEAN_TMP
|
||||
sh ${STATICMERGE}mrg_setup.sh
|
||||
Work_Around
|
||||
eend $?
|
||||
}
|
||||
|
||||
|
||||
stop() {
|
||||
if [ "_${SYSTEMTYPE}" != "_linux" ]
|
||||
then
|
||||
ebegin "Stopping ${MERGENAME}"
|
||||
eend $?
|
||||
return
|
||||
fi
|
||||
|
||||
ebegin "Stopping ${MERGENAME}:"
|
||||
( cd ${STATICMERGE}/drivers ; sh tools/unloadem )
|
||||
${STATICMERGE}/rlockshm -r > /dev/null 2>&1
|
||||
eend $?
|
||||
}
|
||||
|
||||
21
app-emulation/win4lin/files/win4lin.initd.new
Normal file
21
app-emulation/win4lin/files/win4lin.initd.new
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2004 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/win4lin/files/win4lin.initd.new,v 1.3 2004/07/14 21:24:52 agriffis Exp $
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting Win4Lin"
|
||||
/etc/rc.d/init.d/Win4Lin start > /dev/null
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping Win4Lin"
|
||||
/etc/rc.d/init.d/Win4Lin stop > /dev/null
|
||||
eend $?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user