path fixes for Debian
This commit is contained in:
parent
a93bcac95d
commit
5248a757b9
|
@ -128,20 +128,20 @@ case "$DISTRIB_ID" in
|
|||
|
||||
"debian")
|
||||
grep '^acpi_call$' /etc/modules || echo acpi_call >> /etc/modules
|
||||
rm -f /usr/lib64/xorg/modules/extensions/libglx.so
|
||||
ln -sf /usr/lib64/xorg/modules/extensions/libglx.so.* /usr/lib64/snail/modules/extensions/libglx.so
|
||||
apt-get install --reinstall xserver-xorg-core
|
||||
if [ -f /usr/lib64/nvidia/diversions/libGL.so.1 ]; then
|
||||
rm -f /etc/alternatives/libGL.so.1
|
||||
ln -s /usr/lib64/nvidia/diversions/libGL.so.1 /etc/alternatives
|
||||
else
|
||||
rm -f /usr/lib64/libGL.so /usr/lib64/libGL.so.1
|
||||
ln -sf libGL.so.1 /usr/lib64/snail/libGL.so
|
||||
ln -sf /usr/lib64/libGL.so.* /usr/lib64/snail/libGL.so.1
|
||||
mv -f /usr/lib64/libGL.so.* /tmp
|
||||
apt-get install --reinstall libgl1-mesa-glx
|
||||
mv -f /tmp/libGL.so.* /usr/lib64
|
||||
fi
|
||||
#rm -f /usr/lib64/xorg/modules/extensions/libglx.so
|
||||
#ln -sf /usr/lib64/xorg/modules/extensions/libglx.so.* /usr/lib64/snail/modules/extensions/libglx.so
|
||||
#apt-get install --reinstall xserver-xorg-core
|
||||
#if [ -f /usr/lib64/nvidia/diversions/libGL.so.1 ]; then
|
||||
# rm -f /etc/alternatives/libGL.so.1
|
||||
# ln -s /usr/lib64/nvidia/diversions/libGL.so.1 /etc/alternatives
|
||||
#else
|
||||
# rm -f /usr/lib64/libGL.so /usr/lib64/libGL.so.1
|
||||
# ln -sf libGL.so.1 /usr/lib64/snail/libGL.so
|
||||
# ln -sf /usr/lib64/libGL.so.* /usr/lib64/snail/libGL.so.1
|
||||
# mv -f /usr/lib64/libGL.so.* /tmp
|
||||
# apt-get install --reinstall libgl1-mesa-glx
|
||||
# mv -f /tmp/libGL.so.* /usr/lib64
|
||||
#fi
|
||||
;;
|
||||
|
||||
"fedora")
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
model=`dmidecode $@ -s system-product-name`
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
model=`dmidecode $@ -s system-product-name`
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
. /lib/lsb/init-functions
|
||||
|
||||
PATH=$PATH:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
|
||||
DAEMON="snail-watcher.sh"
|
||||
DAEMON="/usr/sbin/snail-watcher.sh"
|
||||
DAEMON_ARGS=""
|
||||
PIDFILE=/var/run/snail-watcher.pid
|
||||
|
||||
|
@ -31,7 +31,7 @@ case "$1" in
|
|||
--pidfile $PIDFILE \
|
||||
--exec $DAEMON \
|
||||
-- $DAEMON_ARGS \
|
||||
|| log_msg "Already running..."
|
||||
|| echo "Already running..."
|
||||
log_end_msg $?
|
||||
;;
|
||||
stop)
|
||||
|
|
Loading…
Reference in New Issue