pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kernel detection in /etc/rc.conf



Hi,

Is there a way to detect kernel version in /etc/rc.conf. I am attempting something like the following:

if uname -v | grep XEN3_DOM0 > /dev/null

then

xend=YES

xenbackendd=NO

xendomains=NO

else

xend=NO

xenbackendd=NO

xendomains=NO

fi

but both uname and grep are missing when /etc/rc.conf is processed. I can presumable use /rescue/grep instead of grep but I cannot find an alternative for uname. Any suggestions?

Thanks,

Sverre



Home | Main Index | Thread Index | Old Index