diff --git a/sbin/snail.configure b/sbin/snail.configure index ce06c5e..069ed34 100755 --- a/sbin/snail.configure +++ b/sbin/snail.configure @@ -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") diff --git a/sbin/snail.nv_pwr_off b/sbin/snail.nv_pwr_off index 3e57262..deff6fb 100755 --- a/sbin/snail.nv_pwr_off +++ b/sbin/snail.nv_pwr_off @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash model=`dmidecode $@ -s system-product-name` diff --git a/sbin/snail.nv_pwr_on b/sbin/snail.nv_pwr_on index 2ede6e2..1d6a5a4 100755 --- a/sbin/snail.nv_pwr_on +++ b/sbin/snail.nv_pwr_on @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash model=`dmidecode $@ -s system-product-name` diff --git a/share/init.d/snail-watcher.sysv b/share/init.d/snail-watcher.sysv index f7a3762..04c8b7d 100644 --- a/share/init.d/snail-watcher.sysv +++ b/share/init.d/snail-watcher.sysv @@ -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)