Browse Source

- only link asm-generic if it exists.
PS: test for existence on Slowaris was disfunctional, last time i looked. Shouldn't matter much here, though..

Bernhard Reutner-Fischer 18 years ago
parent
commit
df727decd9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      extra/scripts/fix_includes.sh

+ 3 - 3
extra/scripts/fix_includes.sh

@@ -160,10 +160,10 @@ fi;
 
 
 # Annoyingly, 2.6.x kernel headers also need an include/asm-generic/ directory
-if [ ! -e include/asm-generic ] ; then
 if [ $VERSION -eq 2 ] && [ $PATCHLEVEL -ge 6 ] ; then
-    ln -fs $KERNEL_SOURCE/include/asm-generic include/asm-generic
-fi;
+	[ ! -e include/asm-generic ] && \
+		[ -e $KERNEL_SOURCE/include/asm-generic ] && \
+	ln -fs $KERNEL_SOURCE/include/asm-generic include/asm-generic
 fi