Skip to contentSkip to conversation

bin/ckmake: Drop Ubuntu check

PATCH Applied Ozan Çağlayan 2 participants 2 messages Jun 11, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bin/ckmake: Drop Ubuntu check

Don't check for distribution as it is now possible to use ckmake on every distribution.

---
 bin/ckmake |   15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)
bin/ckmake +3 -12
index 2d422af..9956cf1 100755
@@ -31,18 +31,9 @@ ARGS=""
 
 RET=""
 
-LSB_RED_ID=$(/usr/bin/lsb_release -i -s)
-case $LSB_RED_ID in
-"Ubuntu")
-	for i in $(find /lib/modules/ -type d -name \*generic\* | sort -n -r | grep -v -E '\-[[:alnum:]]{1,2}\-'); do
-		KLIBS="$KLIBS $i"
-	done
-	;;
-*)
-	echo -e "Unsupported distribution"
-	exit
-	;;
-esac
+for i in $(find /lib/modules/ -type d -name \*generic\* | sort -n -r | grep -v -E '\-[[:alnum:]]{1,2}\-'); do
+	KLIBS="$KLIBS $i"
+done
 
 function tee_color_split()
 {
Signature · 1 line
1.7.10.2
#1 lore raw
Quoted 4 lines · Ozan Çağlayan

Don't check for distribution as it is now possible to use ckmake on every distribution.

Thanks, applied and pushed all! Just next time please add a prefix to the subject so others know what this patch is for, a "[PATCH] compat:
foo" for example works.

Luis