pentoo-system: fix issue 176, ensure kernel sources haven't been depcleaned before bothering to switch to them

This commit is contained in:
Zero_Chaos 2013-10-09 13:34:28 +00:00
parent 02066d147b
commit 64dee09ae0
2 changed files with 1 additions and 1 deletions

View file

@ -2,7 +2,7 @@
##adjust /usr/src/linux link if we are pretty sure we won't screw up the system
KV=$(uname -r)
if [ -d /usr/src/linux-${KV} ]
if [ -d /usr/src/linux-${KV} ] && $(qfile /usr/src/linux-${KV} 2>&1 > /dev/null)
then
if [ -L /usr/src/linux ]
then