diff options
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-x | rc.d/rc.sysinit | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index b89730db..7479ac75 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -122,9 +122,9 @@ if [ -n $USEMODULES ]; then if [ -n "$kernelfile" ]; then kernelname=`echo $kernelfile | awk -F- '{ print $1 }'` versioninfo=`echo $kernelfile | awk -F- '{ print $2 }'` - if [ $kernelname = "/boot/vmlinuz" -a \ - -d /lib/modules/$versioninfo -a \ - $versioninfo != `uname -r` ]; then + if [ "$kernelname" = "/boot/vmlinuz" -a \ + -d "/lib/modules/$versioninfo" -a \ + "$versioninfo" != `uname -r` ]; then ln -sf $versioninfo /lib/modules/default fi fi |