summaryrefslogtreecommitdiffstats
path: root/utils/pb-sysinfo
blob: bd2f0fedc601a8a95d75431266359ba54f6c4d77 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

case "$1" in
'--type')
	tr -d '\0' < /proc/device-tree/model
	;;
'--id')
	tr -d '\0' < /proc/device-tree/system-id
	;;
esac
OpenPOWER on IntegriCloud