mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-20 13:51:00 +02:00
pentoo-system: fix issue 176, ensure kernel sources haven't been depcleaned before bothering to switch to them
This commit is contained in:
parent
02066d147b
commit
64dee09ae0
2 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue