Changed as requested (space to _)


2014-03-26 10:58 GMT+01:00 Nico Schottelius <notifications@github.com>:

> In cdist/conf/explorer/machine_type:
>
> > +#
> > +# You should have received a copy of the GNU General Public License
> > +# along with cdist. If not, see <http://www.gnu.org/licenses/>.
> > +#
> > +#
> > +
> > +# FIXME: other system types (not linux ...)
> > +
> > +if [ -r /proc/cpuinfo ]; then
> > +    # this should only exist on virtual guest machines,
> > +    # tested on vmware, xen, kvm
> > +    if grep -q "hypervisor" /proc/cpuinfo; then
> > +        # this file is aviable in xen guest systems
> > +        if [ -r /sys/hypervisor/type ]; then
> > +            if grep -q -i "xen" /sys/hypervisor/type; then
> > +                echo virtual by xen
>
> I suggest to use output without white spaces in between - it's easier to
> handle later on
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/telmich/cdist/pull/299/files#r10969823>
> .
>