Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37908508
en ru br
ALT Linux repos
S:0.2-alt1

Group :: System/Configuration/Other
RPM: livecd-virtualbox-noglx

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

livecd-virtualbox-noglx-0.2/000075500000000000000000000000001213560350400161405ustar00rootroot00000000000000livecd-virtualbox-noglx-0.2/livecd-postinstall.d/000075500000000000000000000000001213560350400222025ustar00rootroot00000000000000livecd-virtualbox-noglx-0.2/livecd-postinstall.d/50-cp-xorg.conf.sh000075500000000000000000000003131213560350400252630ustar00rootroot00000000000000#!/bin/sh

. livecd-functions

prefix="/etc/X11/xorg.conf.d/"
conffile="virtualbox-noglx.conf"

[ -s "$prefix$conffile" ] || exit 0

mkdir -p "$destdir$prefix"
cp -a "$prefix$conffile" "$destdir$prefix"
livecd-virtualbox-noglx-0.2/livecd-virtualbox-noglx.init000064400000000000000000000015351213560350400236210ustar00rootroot00000000000000#!/bin/sh
#
# livecd-virtualbox-noglx A kludge for vboxdrv in livecd
#
# chkconfig: 345 05 95
# description: aimed at livecd use

# Do not load RH compatibility interface.
WITHOUT_RC_COMPAT=1

# Source function library.
. /etc/init.d/functions

LOCKFILE=/var/lock/subsys/livecd-virtualbox-noglx
RETVAL=0

prefix="/etc/X11/xorg.conf.d"

start()
{
if [ -n "`lspci -d 80ee:beef`" ]; then
mkdir -p "$prefix"
cat >"$prefix/virtualbox-noglx.conf" <<-EOF
Section "ServerFlags"
Option "AIGLX" "false"
EndSection
EOF
fi
return 0
}

# See how we were called.
case "$1" in
start|restart|reload)
start
;;
stop)
;;
condstop)
;;
condrestart|condreload)
if [ -e "$LOCKFILE" ]; then
start
fi
;;
status)
;;
*)
msg_usage "${0##*/} {start|stop|reload|restart|condstop|condrestart|condreload|status}"
RETVAL=1
esac

exit $RETVAL
livecd-virtualbox-noglx-0.2/livecd-virtualbox-noglx.service000064400000000000000000000004501213560350400243110ustar00rootroot00000000000000[Unit]
Description=A kludge for vboxdrv in livecd
DefaultDependencies=no
RequiresMountsFor=/etc
Before=prefdm.service

[Service]
Type=oneshot
ExecStart=/etc/init.d/livecd-virtualbox-noglx start
ExecStop=/etc/init.d/livecd-virtualbox-noglx stop
TimeoutSec=10

[Install]
WantedBy=multi-user.target
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin