#!/bin/bash
#carlos change 2015-03-13

#NEOKYLIN=`cat /etc/neokylin-release|awk -F ' ' '{printf $1} '`
#RELEASE=`cat /etc/neokylin-release`
NEOKYLIN=`cat /etc/neokylin-release`
if [ -f /etc/.productinfo ]; then
	RELEASE=`tr '\n' ' ' < /etc/.productinfo |sed s/[[:space:]]//g  | sed 's/^-//'| sed 's/^NeoKylin/NeoKylin-/' | awk -F '-added' '{printf $1}'`
fi
if [ -f /etc/.product_info ]; then
	RELEASE=`cat /etc/.product_info`
fi
echo Distributor ID: $NEOKYLIN
echo Release:  $RELEASE
