snail pwr off TRIES := 48

This commit is contained in:
Kolan Sh 2012-05-16 00:00:50 +04:00
parent 80028b2005
commit 5b59f169e3
1 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
TRIES=24
TRIES=48
lsmod | grep '^nouveau ' >/dev/null && rmmod -f nouveau &>/dev/null
@ -12,7 +12,7 @@ if [ -f /proc/acpi/bbswitch ]; then
&& echo 'OFF' > /proc/acpi/bbswitch \
&& exit 0
sleep 0.1
sleep 0.2
let tries--
# echo "tries left: $tries"
done
@ -107,7 +107,7 @@ if [ -f /proc/acpi/call ]; then
;;
esac
sleep 0.1
sleep 0.2
let tries--
# echo "tries left: $tries"
done
@ -124,7 +124,7 @@ if [ -f /sys/kernel/debug/vgaswitcheroo/switch ]; then
&& echo 'OFF' > /sys/kernel/debug/vgaswitcheroo/switch \
&& exit 0
sleep 0.1
sleep 0.2
let tries--
echo "tries left: $tries"
done