diff options
author | Mark Ruys <mark.ruys@peercode.nl> | 2015-07-24 16:11:39 +0300 |
---|---|---|
committer | Mark Ruys <mark.ruys@peercode.nl> | 2015-07-24 16:11:39 +0300 |
commit | c998924b51c019f20acff2899a9c6dbb83d1251e (patch) | |
tree | 2abcd4cc6a4cdd1f8e7580f3832ee59770362ee5 /include/tests_storage | |
parent | 424f6cccd039ec84b73b93c4f2fd0b9b18fb5829 (diff) |
Fix STRG-1840 (Check for disabled USB storage)
Diffstat (limited to 'include/tests_storage')
-rw-r--r-- | include/tests_storage | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_storage b/include/tests_storage index 796e07d3..dbae4aca 100644 --- a/include/tests_storage +++ b/include/tests_storage @@ -33,7 +33,7 @@ if [ -d /etc/modprobe.d ]; then FIND=`ls /etc/modprobe.d/* 2> /dev/null` if [ ! "${FIND}" = "" ]; then - FIND=`grep -r "install usb-storage /bin/(false|true)" /etc/modprobe.d/* | grep "usb-storage" | grep -v "#"` + FIND=`grep -r "install usb-storage /bin/\(false\|true\)" /etc/modprobe.d/* | grep "usb-storage" | grep -v "#"` FIND2=`egrep -r "^blacklist (usb_storage|usb-storage)" /etc/modprobe.d/*` if [ ! "${FIND}" = "" -o ! "${FIND2}" = "" ]; then FOUND=1 @@ -44,7 +44,7 @@ fi fi if [ -f /etc/modprobe.conf ]; then - FIND=`grep "install usb-storage /bin/(false|true)" /etc/modprobe.conf | grep "usb-storage" | grep -v "#"` + FIND=`grep "install usb-storage /bin/\(false\|true\)" /etc/modprobe.conf | grep "usb-storage" | grep -v "#"` if [ ! "${FIND}" = "" ]; then FOUND=1 logtext "Result: found usb-storage driver in disabled state" |