aboutsummaryrefslogtreecommitdiffstats
path: root/security/skip/files/patch-bq
diff options
context:
space:
mode:
Diffstat (limited to 'security/skip/files/patch-bq')
-rw-r--r--security/skip/files/patch-bq3
1 files changed, 1 insertions, 2 deletions
diff --git a/security/skip/files/patch-bq b/security/skip/files/patch-bq
index d569137c584..4893e9184f8 100644
--- a/security/skip/files/patch-bq
+++ b/security/skip/files/patch-bq
@@ -106,8 +106,7 @@
+ # Absurd hack to find out device major number
+ # Check for devfs first
+ if [ -z "`mount | grep /dev | grep devfs`" ]; then
-+ DEV_MAJOR=`/sbin/dmesg | grep 'skip: device major=' | tail -1 | sed 's/^.*=\
-([0-9]\{1,\}\),.*$/\1/g'`
++ DEV_MAJOR=`/sbin/dmesg | grep 'skip: device major=' | tail -1 | sed 's/^.*=\([0-9]\{1,\}\),.*$/\1/g'`
+ if [ "${DEV_MAJOR}" = "" ]; then
+ echo ""
+ echo "skip: can't determine skip device major number"