diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-08-24 21:39:49 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-08-24 21:39:49 +0000 |
commit | df727decd95183c03ca17ed5b1bbc8e76f24dac2 (patch) | |
tree | 109d8e31f68aa8919b42dcf0e49b2018786f70d1 /extra/scripts | |
parent | 442e988ff3a8c618a84628cfe30c81c2965cbfa4 (diff) |
- 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..
Diffstat (limited to 'extra/scripts')
-rwxr-xr-x | extra/scripts/fix_includes.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extra/scripts/fix_includes.sh b/extra/scripts/fix_includes.sh index 465d567bf..30f026f88 100755 --- a/extra/scripts/fix_includes.sh +++ b/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 |