summaryrefslogtreecommitdiff
path: root/pistar/bmcli
blob: 34d429e876c27b7ffe874524e46bf880eca77f16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

if [ ! -f /usr/local/bin/bmcli-wrapper ]; then
	echo "missing /usr/local/bin/bmcli-wrapper"
	exit 1
fi

if [ $# -lt 1 ]; then
	./bmcli-wrapper
	exit 1
else
	./bmcli-wrapper $* 2>&1 | \
		grep '<tr><td>' | \
		sed 's/<...?>//g'
fi