#!/bin/sh

# configuration file on Openwrt System
DFCFG=/etc/opkg/distfeeds.conf

if [ -f "${DFCFG}" ] ; then
	echo -n $(tail -n1 ${DFCFG} | sed -e 's#.*/packages/\(.*\)/.*#\1#g')
	exit $?
fi

# print machine type for non-openwrt system
exec uname -m
