diff --git a/le-pregao-712010/VERSAO b/le-pregao-712010/VERSAO index 59e9e60491ae34870786d5e76efe720705a3e916..bb83058ed548aaf2dfaaee63a55c900f1e4a8a9f 100644 --- a/le-pregao-712010/VERSAO +++ b/le-pregao-712010/VERSAO @@ -1 +1 @@ -1.0.11 +1.0.12 diff --git a/le-pregao-712010/pacote/etc/init.d/pregao71 b/le-pregao-712010/pacote/etc/init.d/pregao71 index 4917acdda30e41fdbfa0e158fefb250688ae8916..838c8defcf55d5df7dba4f0a3e5aa4b58a87f91a 100755 --- a/le-pregao-712010/pacote/etc/init.d/pregao71 +++ b/le-pregao-712010/pacote/etc/init.d/pregao71 @@ -5,7 +5,7 @@ if dpkg -l le-pregao-712010 | grep -q ^ii; then if test -f "/var/log/le-oldkernelversion"; then # if we know old kernel version old_version=$(cat "/var/log/le-oldkernelversion") - actual_version=$(uname -r) + actual_version="$(uname -r)" if test ${old_version} != ${actual_version}; then # if kernel was upgraded /usr/lib/dkms/common.postinst lepregao712010 2.3.0.0-Alpha-v2 @@ -20,11 +20,11 @@ if dpkg -l le-pregao-712010 | grep -q ^ii; then # if modprobe fail, will not have problem, this mean that # the driver is already on kernel (I hope) #test -n "`cat /proc/modules | grep rt3562sta`" && rmmod rt3562sta - modprobe rt3562sta + modprobe rt3562sta &> /dev/null fi # Verify if the kernel is in hold state -if test $(dpkg --get-selections | grep linux-image-generic-pae | tr -s [:blank:] | cut -f2) != "hold"; then +if test "$(dpkg --get-selections | grep linux-image-generic-pae | tr -s [:blank:] | cut -f2)" != "hold"; then echo "linux-image-generic-pae hold" | dpkg --set-selections echo "linux-headers-generic-pae hold" | dpkg --set-selections fi