symlinks
This commit is contained in:
parent
b9010efd42
commit
7420942f8d
1
Makefile
1
Makefile
|
@ -17,7 +17,6 @@ install:
|
||||||
install -d ${DESTDIR}/${PREFIX}/share/snail
|
install -d ${DESTDIR}/${PREFIX}/share/snail
|
||||||
install -d ${DESTDIR}/${PREFIX}/share/snail/init.d
|
install -d ${DESTDIR}/${PREFIX}/share/snail/init.d
|
||||||
install share/init.d/* ${DESTDIR}/${PREFIX}/share/snail/init.d
|
install share/init.d/* ${DESTDIR}/${PREFIX}/share/snail/init.d
|
||||||
install -d ${DESTDIR}/${PREFIX}/lib/snail/extensions
|
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f ${DESTDIR}/etc/X11/xorg.conf.*.snail
|
rm -f ${DESTDIR}/etc/X11/xorg.conf.*.snail
|
||||||
|
|
|
@ -15,8 +15,9 @@ FIFO_FILE=/tmp/.snail.fifo
|
||||||
|
|
||||||
if [ 0 -eq $? ]; then
|
if [ 0 -eq $? ]; then
|
||||||
echo "Running $@ on nVidia"
|
echo "Running $@ on nVidia"
|
||||||
export LD_LIBRARY_PATH=/usr/lib/snail
|
export LD_LIBRARY_PATH=/usr/lib/snail:/usr/lib/snail/lib
|
||||||
export LD_PRELOAD="/usr/lib/snail/libGL.so:/usr/lib/snail/libnvidia-tls.so"
|
[ -f /usr/lib/snail/libGL.so ] && LD_PRELOAD=$LD_PRELOAD:/usr/lib/snail/libGL.so
|
||||||
|
[ -f /usr/lib/snail/libnvidia-tls.so ] && LD_PRELOAD=$LD_PRELOAD:/usr/lib/snail/libnvidia-tls.so
|
||||||
snail.vglrun -d :1 "$@"
|
snail.vglrun -d :1 "$@"
|
||||||
echo "Application $@ was performed on nVidia"
|
echo "Application $@ was performed on nVidia"
|
||||||
|
|
||||||
|
|
|
@ -120,14 +120,9 @@ case "$DISTRIB_ID" in
|
||||||
eselect mesa set $arch $chip classic &>/dev/null;
|
eselect mesa set $arch $chip classic &>/dev/null;
|
||||||
done;
|
done;
|
||||||
done
|
done
|
||||||
ln -sf /usr/lib/xorg/modules/extensions/libdbe.so /usr/lib/snail/extensions/libdbe.so
|
ln -sf /usr/lib/opengl/nvidia/extensions /usr/lib/snail/extensions
|
||||||
ln -sf /usr/lib/xorg/modules/extensions/libdri.so /usr/lib/snail/extensions/libdri.so
|
ln -sf /usr/lib/opengl/nvidia/lib /usr/lib/snail/lib
|
||||||
ln -sf /usr/lib/xorg/modules/extensions/libdri2.so /usr/lib/snail/extensions/libdri2.so
|
ln -sf /usr/lib/xorg/modules /usr/lib/snail/modules
|
||||||
ln -sf /usr/lib/xorg/modules/extensions/libextmod.so /usr/lib/snail/extensions/libextmod.so
|
|
||||||
ln -sf /usr/lib/xorg/modules/extensions/librecord.so /usr/lib/snail/extensions/librecord.so
|
|
||||||
ln -sf /usr/lib/opengl/nvidia/extensions/libglx.so /usr/lib/snail/extensions/libglx.so
|
|
||||||
ln -sf /usr/lib/opengl/nvidia/lib/libGL.so /usr/lib/snail/libGL.so
|
|
||||||
ln -sf /usr/lib/opengl/nvidia/lib/libnvidia-tls.so /usr/lib/snail/libnvidia-tls.so
|
|
||||||
grep acpi_call /etc/conf.d/modules || echo 'modules="${modules} acpi_call' >> /etc/conf.d/modules
|
grep acpi_call /etc/conf.d/modules || echo 'modules="${modules} acpi_call' >> /etc/conf.d/modules
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,7 @@ PIDFILE=/var/run/snail-xserver.pid
|
||||||
start() {
|
start() {
|
||||||
ebegin "Starting Snail nVidia Optimus"
|
ebegin "Starting Snail nVidia Optimus"
|
||||||
snail.nv_pwr_on || eend -1
|
snail.nv_pwr_on || eend -1
|
||||||
export LD_LIBRARY_PATH=/usr/lib/snail
|
export LD_LIBRARY_PATH=/usr/lib/snail:/usr/lib/snail/lib
|
||||||
export LD_PRELOAD=/usr/lib/snail/libGL.so
|
|
||||||
pid=`cat $PIDFILE 2>/dev/null`
|
pid=`cat $PIDFILE 2>/dev/null`
|
||||||
rm -f $PIDFILE
|
rm -f $PIDFILE
|
||||||
[ -z $pid ] || ! pgrep -s $pid X &>/dev/null && \
|
[ -z $pid ] || ! pgrep -s $pid X &>/dev/null && \
|
||||||
|
|
|
@ -27,8 +27,7 @@ case "$1" in
|
||||||
start)
|
start)
|
||||||
log_begin_msg "Starting Snail nVidia Optimus"
|
log_begin_msg "Starting Snail nVidia Optimus"
|
||||||
snail.nv_pwr_on || log_end_msg 1
|
snail.nv_pwr_on || log_end_msg 1
|
||||||
export LD_LIBRARY_PATH=/usr/lib/snail
|
export LD_LIBRARY_PATH=/usr/lib/snail:/usr/lib/snail/lib
|
||||||
export LD_PRELOAD=/usr/lib/snail/libGL.so
|
|
||||||
pid=`cat $PIDFILE 2>/dev/null`
|
pid=`cat $PIDFILE 2>/dev/null`
|
||||||
rm -f $PIDFILE
|
rm -f $PIDFILE
|
||||||
[ -z $pid ] || ! pgrep -s $pid X &>/dev/null && \
|
[ -z $pid ] || ! pgrep -s $pid X &>/dev/null && \
|
||||||
|
|
Loading…
Reference in New Issue