From d5a7713bffd0113812b582d826b87d4ce193d5ba Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 11 Jun 2015 17:52:12 +0200 Subject: [PATCH] removed --skip-tilde from which, it keeps which from finding executables in /usr/bin (maybe because HOME=/ in initscripts) --- hashboot.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hashboot.sh b/hashboot.sh index b0bd59c..012026d 100755 --- a/hashboot.sh +++ b/hashboot.sh @@ -44,13 +44,13 @@ then fi #Try different hashers, use the most secure -HASHER=$(/usr/bin/which --skip-dot --skip-tilde sha512sum 2> /dev/null) -test -z ${HASHER} && HASHER=$(/usr/bin/which --skip-dot --skip-tilde sha384sum 2> /dev/null) -test -z ${HASHER} && HASHER=$(/usr/bin/which --skip-dot --skip-tilde sha256sum 2> /dev/null) -test -z ${HASHER} && HASHER=$(/usr/bin/which --skip-dot --skip-tilde sha224sum 2> /dev/null) +HASHER=$(/usr/bin/which --skip-dot sha512sum 2> /dev/null) +test -z ${HASHER} && HASHER=$(/usr/bin/which --skip-dot sha384sum 2> /dev/null) +test -z ${HASHER} && HASHER=$(/usr/bin/which --skip-dot sha256sum 2> /dev/null) +test -z ${HASHER} && HASHER=$(/usr/bin/which --skip-dot sha224sum 2> /dev/null) #It gets insecure below here, but better than nothing? -test -z ${HASHER} && HASHER=$(/usr/bin/which --skip-dot --skip-tilde sha1sum 2> /dev/null) -test -z ${HASHER} && HASHER=$(/usr/bin/which --skip-dot --skip-tilde md5sum 2> /dev/null) +test -z ${HASHER} && HASHER=$(/usr/bin/which --skip-dot sha1sum 2> /dev/null) +test -z ${HASHER} && HASHER=$(/usr/bin/which --skip-dot md5sum 2> /dev/null) #If we found no hasher: exit if [ -z ${HASHER} ]